Skip to content

Commit

Permalink
fixed prefix in markdown messages counting in sarif validations
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman committed Dec 8, 2024
1 parent 099946b commit 5d5f8db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/validations/test_validate_sarif.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func countJasResults(runs []*sarif.Run) (vulnerabilities, violations int) {
for _, run := range runs {
for _, result := range run.Results {
// JAS results does not have watch property yet, we should infer by prefix in msg
if strings.HasPrefix(sarifutils.GetResultMsgMarkdown(result), "Security violation") {
if strings.HasPrefix(sarifutils.GetResultMsgMarkdown(result), "[Security violation]") {
violations++
} else {
vulnerabilities++
Expand Down

0 comments on commit 5d5f8db

Please sign in to comment.