Commit 5ae7e8d
fix(ci): mythos-auto plumbing — slug ordering, unzip install (#164)
PR #163 was the first end-to-end test of mythos-auto.yml (added in
#162). It surfaced three plumbing issues:
1. The action's `oven-sh/setup-bun` step requires `unzip`, which is
not installed by default on the rust-cpu runners. Without it the
action's bun-based post-step entrypoints exit 127, and the whole
scan-step exits failure before emitting structured output.
2. The `Slugify file path for artifact name` step sat AFTER the
discover step with no `if: always()`. When discover failed, the
slug step was skipped, leaving `steps.slug.outputs.slug` empty.
Downstream `if: always()` steps then wrote
`mythos-out/.json` (no slug) and `upload-artifact` complained
"No files were found with the provided path: mythos-out/.json".
3. The `Save structured output as artifact` step embedded
`${{ steps.slug.outputs.slug }}` in the run-block via direct
interpolation. Silently substituting an empty slug into a file
path is a footgun even if the slug step had run — better to read
slug from an env var and fail loudly on empty.
Fixes:
- Slugify step moves BEFORE the discover step, so it always runs
(no `if: always()` needed because both detect+slug are the
precondition for everything below).
- New `Install unzip (required by setup-bun)` step, best-effort
apt install mirroring the action's own subprocess-isolation
install pattern. `continue-on-error: true` so non-Debian runners
don't break the workflow.
- `Save structured output as artifact` reads slug from env (`SLUG`)
rather than `${{ }}` interpolation; explicitly errors out if SLUG
is empty rather than silently writing to a malformed path.
- `upload-artifact` step gains an extra `steps.slug.outputs.slug
!= ''` guard so it never tries to upload with an empty name.
The placeholder-FINDING fallback (the part that surfaced these
issues by writing "discover step failed before emitting structured
output" into the aggregate comment) is intentional and stays — it
guarantees the gate blocks on workflow failure rather than silently
passing.
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 84a1ed9 commit 5ae7e8d
1 file changed
Lines changed: 43 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
148 | 184 | | |
149 | 185 | | |
150 | 186 | | |
| |||
175 | 211 | | |
176 | 212 | | |
177 | 213 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | 214 | | |
188 | 215 | | |
189 | 216 | | |
190 | 217 | | |
| 218 | + | |
191 | 219 | | |
192 | 220 | | |
193 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
194 | 226 | | |
195 | 227 | | |
196 | 228 | | |
197 | 229 | | |
198 | 230 | | |
199 | 231 | | |
200 | | - | |
| 232 | + | |
201 | 233 | | |
202 | 234 | | |
203 | | - | |
| 235 | + | |
204 | 236 | | |
205 | 237 | | |
206 | 238 | | |
| |||
0 commit comments