Commit 140291c
committed
ci: smoke-test - grant packages:read so reusable discover_versions can run
The Smoke Test workflow ran on PR #400 head commit and concluded as
startup_failure with 0 jobs. That's GH Actions failing to validate the
workflow before any container spawns. Compared against every other
workflow that calls _discover-versions.yml (simple, cmdline,
multi-compiler, fips-ready, sanitizers, seed-src), smoke-test.yml is
the only one with a workflow-level 'permissions: contents: read' block.
The reusable _discover-versions.yml job declares
'permissions: { contents: read, packages: read }' for its oras login
ghcr.io step. Workflow-level permissions clamp every job including
reusable workflows, so the discover_versions job ended up with strictly
fewer permissions than it declared, which trips startup validation.
Grant packages:read at the workflow level so the reusable workflow's
declared permissions can be satisfied. Keep the explicit block instead
of removing it - the other working workflows just rely on the repo
default token, but smoke-test.yml should stay explicit since it's the
gate everything else waits on.1 parent e5226fb commit 140291c
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
0 commit comments