Closed iozery closed 1 year ago
Thanks @iozery.
I've created a PR to include only failed instances in the SARIF output https://github.com/Legit-Labs/legitify/pull/252/files
I'll update once merged.
I assume you don't expect to see PASSED entities in the sarif output, if you do please let us know.
Merged, closing the issue for now
TL;DR
SARIF format results do not include status of the violation - i.e. "PASSED", "FAILED" etc - the field
level
in theresults
corresponds to the severity of the security rule.Expected behavior
Running legitify with the following command:
go run main.go analyze -t <token> --org <org-name> --scm github --output-format sarif --output-file results.json
Expected to view the violation status in the SARIF results
Observed behavior
SARIF-based format results
JSON-based Format results
BTW, According to the actions settings, the JSON-based result is correct.
Version
v1.0.1
On which operating system are you using legitify?
Mac OS
Relevant log output
No response
Additional information
As it seems by the formatter_sarif.go file, there is no reference to the
Status
field of the violation: