Skip to content

Fix zizmor findings in workflows - #16

Merged
Sudo-Ivan merged 1 commit into
masterfrom
chore/zizmor-fixes
Sep 23, 2026
Merged

Sudo-Ivan merged 1 commit into
masterfrom
chore/zizmor-fixes

Conversation

@Sudo-Ivan

Copy link
Copy Markdown
Contributor

Summary

Fixes all 13 zizmor findings (auditor persona, online audits):

  • pages.yml: move pages: write and id-token: write from workflow level into the deploy job (excessive-permissions)
  • publish.yml: add environment: publish to the build, assemble, and publish-bunnycdn jobs so PACKAGER_GPG_PRIVATE_KEY and BUNNY_STORAGE_ACCESS_KEY are accessed under a dedicated environment (secrets-outside-env). Protection rules and environment-scoped secrets can be added there later.
  • Add explanatory comments to flagged permissions blocks in codeql.yml, dependency-review.yml, publish.yml, scorecard.yml (undocumented-permissions)

Test plan

  • zizmor --persona=auditor .github/workflows/ reports zero findings locally
  • CI green on this PR

- pages.yml: move pages/id-token write permissions from workflow level
  to the deploy job
- publish.yml: put build, assemble, and publish-bunnycdn jobs behind a
  publish environment so secrets are accessed under environment rules
- Add explanatory comments to flagged permissions blocks

zizmor --persona=auditor now reports zero findings.
@Sudo-Ivan
Sudo-Ivan merged commit e79b035 into master Sep 23, 2026
23 checks passed
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