Skip to content

Commit 3da0c39

Browse files
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

File tree

.github/workflows/spark-theatre-gate.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
paths: "."
3333
enforce_zero_contract: false
34-
permissions:
35-
actions: read
36-
contents: read
37-
security-events: write
34+
permissions:
35+
actions: read
36+
contents: read
37+
security-events: write

0 commit comments

Comments
 (0)