Skip to content

Commit 56a00d1

Browse files
committed
Add missing VEX status mappings for resolved_with_pedigree and false_positive
Signed-off-by: Irena Liu <[email protected]>
1 parent 46abe55 commit 56a00d1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pkg/ingestor/parser/cyclonedx/parser_cyclonedx.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ var json = jsoniter.ConfigCompatibleWithStandardLibrary
4040
var zeroTime = time.Unix(0, 0).UTC()
4141

4242
var vexStatusMap = map[cdx.ImpactAnalysisState]model.VexStatus{
43-
cdx.IASResolved: model.VexStatusFixed,
44-
cdx.IASExploitable: model.VexStatusAffected,
45-
cdx.IASInTriage: model.VexStatusUnderInvestigation,
46-
cdx.IASNotAffected: model.VexStatusNotAffected,
43+
cdx.IASResolved: model.VexStatusFixed,
44+
cdx.IASExploitable: model.VexStatusAffected,
45+
cdx.IASInTriage: model.VexStatusUnderInvestigation,
46+
cdx.IASNotAffected: model.VexStatusNotAffected,
47+
cdx.IASResolvedWithPedigree: model.VexStatusFixed,
48+
cdx.IASFalsePositive: model.VexStatusNotAffected,
4749
}
4850

4951
var justificationsMap = map[cdx.ImpactAnalysisJustification]model.VexJustification{

0 commit comments

Comments
 (0)