Skip to content

ci: harden workflow security per zizmor audit - #97

Merged
artemkovalyov merged 1 commit into
mainfrom
ci/harden-workflows
Nov 23, 2026
Merged

artemkovalyov merged 1 commit into
mainfrom
ci/harden-workflows

Conversation

@artemkovalyov

@artemkovalyov artemkovalyov commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Pin all 6 action references to full commit SHAs (prevents supply chain attacks via mutable tags)
  • Move pages: write and id-token: write from workflow level to job level — build gets all three, deploy gets only the two it needs
  • Add persist-credentials: false to the actions/checkout step to prevent credential leakage through artifacts

Addresses all findings from zizmor .github/workflows/:

  • 6× unpinned-uses errors
  • 2× excessive-permissions errors
  • 1× artipacked warning

Test plan

  • Verify the build job succeeds on this PR (no deploy expected on PRs)
  • Merge and confirm the deploy job runs successfully on main

Pin all action references to full commit SHAs to prevent supply chain
attacks from mutable tags. Scope excessive permissions down to job level
so the build job cannot deploy and the deploy job has no write access to
contents. Add persist-credentials: false to the checkout step to avoid
credential leakage through artifacts.

Signed-off-by: Artem Kovalov <artem.kovalyov@gmail.com>
@artemkovalyov
artemkovalyov merged commit 377a694 into main Nov 23, 2026
5 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