Repository navigation
Commit 1b05681
authored
fix(ci): correct reusable-workflow caller permissions and inputs (#118)
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 07f9bff commit 1b05681
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
0 commit comments