security: add zizmor check for unpinned GitHub Actions - #429
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a repository-level enforcement workflow to prevent GitHub Actions from being referenced via mutable refs (tags/branches) by running zizmor and failing the check when unpinned-uses findings are present. This aligns this repo with the org-wide SHA-pinning initiative referenced in #427.
Changes:
- Introduces
.github/workflows/check_pinned_actions.ymlto scan workflows/actions paths on PRs andmainpushes. - Installs
uvand runsuvx zizmorto produce JSON output, then filters forunpinned-usesfindings and emits actionable error output.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ben851
approved these changes
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the same
check_pinned_actions.ymlenforcement workflow already used innotification-terraform(and other repos in this initiative) to this repo.Uses zizmor to scan
.github/workflows(and.github/actionsif present) on every PR touching those paths, and fails the check if anyunpinned-usesfinding is reported (i.e. an action referenced by a mutable tag/branch instead of a full commit SHA).Ran zizmor locally against this repo's current workflows/actions — 0 unpinned-uses findings, so this is enabled with a clean baseline (everything here is already SHA-pinned via #427 and the codeql.yml workflow).