Commit e43710f
committed
fix: only upload SARIF files when they exist
Scanning tools (Hadolint, Dockle, Trivy, Grype) may fail without creating
SARIF output files. Upload steps were failing with "Path does not exist" errors
when trying to upload non-existent files.
Changes:
- Add hashFiles() check to all SARIF upload conditions
- Add continue-on-error to Grype scan steps
- Remove unnecessary 'exit 0' from Hadolint and Dockle steps
This prevents upload failures when scanning tools don't produce output files.
Fixes SARIF upload errors in PR #1166
Signed-off-by: Manav Gupta <[email protected]>1 parent b8bc595 commit e43710f
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | | - | |
78 | 77 | | |
79 | | - | |
| 78 | + | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
| |||
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
150 | | - | |
| 149 | + | |
151 | 150 | | |
152 | | - | |
153 | 151 | | |
154 | | - | |
| 152 | + | |
155 | 153 | | |
156 | 154 | | |
157 | 155 | | |
| |||
180 | 178 | | |
181 | 179 | | |
182 | 180 | | |
183 | | - | |
| 181 | + | |
184 | 182 | | |
185 | 183 | | |
186 | 184 | | |
| |||
189 | 187 | | |
190 | 188 | | |
191 | 189 | | |
| 190 | + | |
192 | 191 | | |
193 | 192 | | |
194 | 193 | | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
0 commit comments