From f2e3989be6d2f46d8dfbc50d08ac94cab2dc0955 Mon Sep 17 00:00:00 2001 From: Joyce Quach Date: Wed, 9 Oct 2024 14:39:25 -0400 Subject: [PATCH] Update import and fix typo in comment Signed-off-by: Joyce Quach --- libs/hdf-converters/src/neuvector-mapper.ts | 8 +------- libs/hdf-converters/types/neuvector-types.ts | 9 ++++++++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/libs/hdf-converters/src/neuvector-mapper.ts b/libs/hdf-converters/src/neuvector-mapper.ts index 71321744f4..645768b1df 100644 --- a/libs/hdf-converters/src/neuvector-mapper.ts +++ b/libs/hdf-converters/src/neuvector-mapper.ts @@ -5,6 +5,7 @@ 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, @@ -12,13 +13,6 @@ import { 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 { diff --git a/libs/hdf-converters/types/neuvector-types.ts b/libs/hdf-converters/types/neuvector-types.ts index e0378c4886..a47cae0fd5 100644 --- a/libs/hdf-converters/types/neuvector-types.ts +++ b/libs/hdf-converters/types/neuvector-types.ts @@ -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' +}