Skip to content

fix(ci): grant zizmor-sarif the actions: read it declares - #39

Merged
rldyourmnd merged 1 commit into
mainfrom
fix/zizmor-actions-read
Aug 3, 2026
Merged

fix(ci): grant zizmor-sarif the actions: read it declares#39
rldyourmnd merged 1 commit into
mainfrom
fix/zizmor-actions-read

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

Fallout from the 0.12.0 → 0.13.3 repin, caught on main immediately after it landed: zizmor now reports startup_failure with no jobs.

zizmor-sarif.yml reads workflow run metadata from the Actions API and declares actions: read — the catalog lists it under required_permissions alongside contents: read and security-events: write. A caller cannot grant a reusable more than the caller itself declares, so the missing scope fails the run at startup, before any job begins, which is why it shows as a startup failure rather than a job failure.

github-device-sync's equivalent caller already declared all three; this one did not.

This is the same defect class as the pr-title pull-requests: read fix in ci-workflows 0.13.3 — a reusable's declared scope has to be mirrored by every caller.

The 0.12.0 -> 0.13.3 repin surfaced this: zizmor-sarif reads workflow run
metadata from the Actions API and declares actions: read, and a caller cannot
grant a reusable more than it declares itself. The caller listed only
contents: read and security-events: write, so the run failed at startup before
any job began.

Signed-off-by: Danil Silantyev <danilsilantyevwork@gmail.com>
@rldyourmnd
rldyourmnd merged commit 8a56abb into main Aug 3, 2026
29 checks passed
@rldyourmnd
rldyourmnd deleted the fix/zizmor-actions-read branch August 3, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant