Skip to content

Commit 9a8b146

Browse files
authored
fix(cxOne): set taxa in SARIF as array (#4911)
1 parent 0f83941 commit 9a8b146

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/checkmarxone/cxjson_to_sarif.go

+1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ func ConvertCxJSONToSarif(sys System, serverURL string, scanResults *[]ScanResul
261261
taxonomy.Name = "CWE"
262262
taxonomy.Organization = "MITRE"
263263
taxonomy.ShortDescription.Text = "The MITRE Common Weakness Enumeration"
264+
taxonomy.Taxa = make([]format.Taxa, 0)
264265
for key := range cweIdsForTaxonomies {
265266
taxa := *new(format.Taxa)
266267
taxa.Id = fmt.Sprintf("%d", key)

0 commit comments

Comments
 (0)