This repository was archived by the owner on May 24, 2025. It is now read-only.
Commit bd899d9
authored
fix(#15): Fix invalid SARIF content if container-scan returns no vulnerabilities
This sets the 'runs.results' field to an empty array in the resulting SARIF
if container scan returned no vulnerabilities or best practices violations,
instead of setting such field to 'null'.
Otherwise, the SARIF report is considered as invalid by the 'upload-sarif'
GitHub Action.2 files changed
+564
-203
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
| 168 | + | |
164 | 169 | | |
165 | 170 | | |
166 | 171 | | |
| |||
0 commit comments