Skip to content

Commit 331be70

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

File tree

.github/workflows/hypatia-scan.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}
2121
cancel-in-progress: true
2222
permissions:
23+
actions: read
2324
contents: read
2425
security-events: write
2526

2627
jobs:
2728
hypatia:
2829
uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@571cc734cd69fb846032ec77a662aa8ee4fc32cd
30+
31+
secrets: inherit

0 commit comments

Comments
 (0)