Repository navigation
ci: fix zizmor policy failures - #657
Merged
Bowei Du (bowei) merged 2 commits intoJul 31, 2026
Merged
Conversation
The org's zizmor scan audits every workflow file a PR touches, and unpinned-uses is one of its mandatory checks: a mutable tag like @v5 can be repointed at any commit, so the pin has to be a hash. The tags these were on are kept as comments.
2 tasks done
The scan's other blocking finding on this file: with no permissions block a job gets the repository's default token scopes, which for these jobs is more than they use.
Sanskar Singh Bhardwaj (sanskar-singh-2403)
added a commit
to sanskar-singh-2403/substrate
that referenced
this pull request
Aug 6, 2026
agent-substrate#657 already pinned the actions in pr-workflow.yaml and scoped the token to contents: read, so this trims to just the zizmor findings that landing did not cover. - govulncheck.yaml: pin golang/govulncheck-action@v1 to 032d45514ae346b1db93c04b0c90b841c370344f (v1.1.0), the only remaining unpinned-uses finding. - pr-workflow.yaml: fix template-injection. Move ${{ matrix.ateapi-client-auth }} (Install / Deploy micro-VM steps) and ${{ needs.e2e-test-matrix.result }} (Check E2E matrix step) into env: vars and reference them as quoted shell variables so the expansion cannot inject code. Verified with zizmor v1.29.0: zero unpinned-uses and zero template-injection findings on both workflows. No functional change.
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.
Fixes new org-imposed requirement to pin workflow actions and to explicitly mark workflows as read only. We should've been doing this anyhow. Dependabot even knows how to bump in this format.