Commit 233e0b0
Don't turn the upload job red when no SARIF was ever produced
Review nit: if the container job dies before `semgrep ci` runs — a container-pull
failure, or checkout failing — no SARIF is written, and the upload job then went
red on "artifact not found", pointing a debugger at the download step instead of
at the real upstream cause. Two reds where the pre-split workflow showed one.
Tolerate the missing artifact and skip the upload when there is no file. The
normal case is unaffected: `semgrep ci` exiting 1 on blocking findings still
writes the SARIF, still uploads it, and still reaches the dashboard.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 8b08eb9 commit 233e0b0
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| 85 | + | |
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
| 91 | + | |
0 commit comments