Repository navigation
Commit c9f1127
fix(reuse): distinguish SPDX skipped, upload-failed, and failed outcomes
The Summary step previously gated the success message on
`SPDX_OUTCOME == success` alone, so an artifact upload failure was
silently presented as a successful upload, and a skipped SPDX step
(triggered when REUSE lint fails with `fail-on-missing: true` and the
job aborts before SPDX runs) was reported as "SPDX SBOM generation
failed (outcome: skipped)", sending operators to debug a step that
never ran.
Address both Copilot findings on PR #125:
- Add `id: upload-spdx` to the Upload SPDX artifact step and thread
`UPLOAD_OUTCOME` into the Summary step's env block.
- Split the SPDX status line into four explicit branches:
success+uploaded (happy path), success+upload-failed (artifact is
missing), skipped (no SPDX failure to investigate), and any other
outcome (genuine generation failure).
Also document the intentional `fail-on-missing: false` behavior with
an `#ASSUME` comment: SPDX still runs against a possibly non-compliant
tree because the SBOM is for transparency, not for gating, and a
partial inventory beats none.
Refs: ByronWilliamsCPA/.github PR #125 (review comments)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent ed595aa commit c9f1127
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
| |||
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| 104 | + | |
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
| |||
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
| 120 | + | |
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| |||
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
149 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
150 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
151 | 167 | | |
152 | 168 | | |
153 | 169 | | |
| |||
0 commit comments