refactor(vuln): don't remove VendorSeverity in JSON report (#5761)

This commit is contained in:
DmitriyLewen
2023-12-12 18:33:41 +06:00
committed by GitHub
parent be5a550491
commit 9b4bcedf0e
58 changed files with 751 additions and 38 deletions

View File

@@ -55,6 +55,9 @@ func TestReportWriter_JSON(t *testing.T) {
Title: "foobar",
Description: "baz",
Severity: "HIGH",
VendorSeverity: map[dbTypes.SourceID]dbTypes.Severity{
vulnerability.NVD: dbTypes.SeverityHigh,
},
},
},
},