Skip to content

Commit

Permalink
fix(cxOne): set taxa in SARIF as array (#4911)
Browse files Browse the repository at this point in the history
  • Loading branch information
thtri authored May 6, 2024
1 parent 0f83941 commit 9a8b146
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/checkmarxone/cxjson_to_sarif.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ func ConvertCxJSONToSarif(sys System, serverURL string, scanResults *[]ScanResul
taxonomy.Name = "CWE"
taxonomy.Organization = "MITRE"
taxonomy.ShortDescription.Text = "The MITRE Common Weakness Enumeration"
taxonomy.Taxa = make([]format.Taxa, 0)
for key := range cweIdsForTaxonomies {
taxa := *new(format.Taxa)
taxa.Id = fmt.Sprintf("%d", key)
Expand Down

0 comments on commit 9a8b146

Please sign in to comment.