Commit 3da0c39
authored
fix(ci): correct reusable-workflow caller permissions and inputs (#755)
Two proven fatal classes, both confirmed by GitHub's own error text:
1. `permissions:` **nested under `with:`** — it is read as a workflow
*input*, and undeclared inputs are rejected at creation (`Invalid input,
toolchain is not defined in the referenced workflow` — januskey run
34410358241). The block is moved to job level, and the undeclared
`toolchain` input is dropped (rust-ci-reusable declares
runs-on/enable_audit/enable_coverage/coverage_floor/clippy_args/test_args/check_args/working_directory).
2. Caller granting fewer permissions than the callee declares — `Error
calling workflow … requesting '<perm>', but is only allowed '<none>'`.
The job now grants the canonical `actions: read`, `contents: read`,
`security-events: write`.
Verified with `git apply --check` against current `main` before opening.1 parent ed324bf commit 3da0c39
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments