diff --git a/utils/validations/test_validate_sarif.go b/utils/validations/test_validate_sarif.go index ace35d83..24864996 100644 --- a/utils/validations/test_validate_sarif.go +++ b/utils/validations/test_validate_sarif.go @@ -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++