Repository navigation
ci: add zizmor workflow security scan - #55
Merged
Merged
Conversation
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.
What Changed
.github/workflows/zizmor.yml. It runs the SHA-pinnedzizmorcore/zizmor-actionon pushes and pull requests tomain. It uses empty top-level permissions, job-levelcontents: readandactions: read, andadvanced-security: false.persist-credentials: falseon everyactions/checkoutstep in.github/workflows/ci.yml(three jobs), so the checkout token is not left in the git config.Risk Assessment
✅ Low: The change is CI-only: it adds a SHA-pinned zizmor workflow with empty default permissions and read-only job permissions, and sets
persist-credentials: falseon the existing checkouts so the workflows pass zizmor's artipacked audit. A local offline zizmor run on all workflows reports no findings.Testing
I ran the real zizmor binary offline on the head workflows, and they came back clean. The same run on the base commit gave 3 artipacked findings, which the checkout changes fix. I did not run the GitHub-hosted action itself, and zizmor's online audits were skipped because there is no API token.
Evidence: zizmor head
Evidence: zizmor base
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
.github/workflows/zizmor.yml:21- zizmor-action is pinned by SHA, but it installs zizmorlatestby default because noversion:input is set. A new zizmor release can add audits that fail PR CI with no repo change. Setversion:to a fixed release (for example the current one) so audit results stay reproducible. Upgrades then arrive as deliberate PRs.✅ **Test** - passed
✅ No issues found.
nix develop --no-pure-eval --command go test ./...zizmor --offline .github/workflowsat HEAD: no findingszizmor --offlineon base-commit workflows: 3 medium artipacked findings✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.