Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update import and fix typo in comment
Browse files Browse the repository at this point in the history
Signed-off-by: Joyce Quach <[email protected]>
jtquach1 committed Nov 22, 2024
1 parent ea23c37 commit 9221edc
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 1 addition & 7 deletions libs/hdf-converters/src/neuvector-mapper.ts
Original file line number Diff line number Diff line change
@@ -5,20 +5,14 @@ import {BaseConverter, ILookupPath, MappedTransform} from './base-converter';
import {CweNistMapping} from './mappings/CweNistMapping';
import {DEFAULT_UPDATE_REMEDIATION_NIST_TAGS} from './utils/global';
import {
DockerSecurityBenchCheckResult,
NeuVectorScanJson,
RESTModuleCve,
RESTScanModule,
RESTScanRepoReport,
RESTVulnerability
} from '../types/neuvector-types';

enum DockerSecurityBenchCheckResult {
Pass = 'PASS',
Warn = 'WARN',
Note = 'NOTE',
Info = 'INFO'
}

const CWE_NIST_MAPPING = new CweNistMapping();

function cweTags(description: string): string[] | undefined {
9 changes: 8 additions & 1 deletion libs/hdf-converters/types/neuvector-types.ts
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ packages:
// docker-compose.yml
```
services:
# Generates neuvector/scanner TypeScript types from its Golang source code
# Generates neuvector/neuvector TypeScript types from its Golang source code
go2ts:
container_name: tygo
volumes:
@@ -203,3 +203,10 @@ export type NeuVectorScanJson = {
report: RESTScanRepoReport;
error_message: string;
};

export enum DockerSecurityBenchCheckResult {
Pass = 'PASS',
Warn = 'WARN',
Note = 'NOTE',
Info = 'INFO'
}

0 comments on commit 9221edc

Please sign in to comment.