Commit 331be70
authored
fix(ci): grant the wrapper the permissions the reusable declares (#60)
**Every run of this wrapper was `startup_failure`** — the workflow never
started, so the repository has never published a Hypatia check. That is
the defect class of hyperpolymath/tropical-types#17: a gate (or a
requirement) that names a context nothing publishes.
Cause: the Hypatia reusable workflow declares `actions: read`,
`contents: read` and `security-events: write`, and a caller cannot start
a called workflow unless its job grants at least what the called
workflow declares. This wrapper did not grant `actions: read`.
Fix, minimal:
* grant `actions: read` (at the job level where a job-level
`permissions:` block overrides the workflow-level one);
* pass `secrets: inherit` — the reusable consumes
`secrets.HYPATIA_SCAN_PAT || secrets.GITHUB_TOKEN`.
The caller id, the pin and the rest of the job are untouched. Found by
the caller-id standardisation sweep (same probe: read the run history,
not the file).1 parent 4aa6853 commit 331be70
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
| 31 | + | |
0 commit comments