Skip to content

Commit

Permalink
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]>
  • Loading branch information
jtquach1 committed Oct 9, 2024
1 parent ead0957 commit f2e3989
Show file tree
Hide file tree
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
Expand Up @@ -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 {
Expand Down
9 changes: 8 additions & 1 deletion libs/hdf-converters/types/neuvector-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 f2e3989

Please sign in to comment.