Skip to content

ci: add zizmor workflow security scan - #55

Merged
Azd325 merged 1 commit into
mainfrom
fm/ci-zizmor-router-axi
Oct 18, 2026
Merged

Azd325 merged 1 commit into
mainfrom
fm/ci-zizmor-router-axi

Conversation

@Azd325

@Azd325 Azd325 commented Oct 18, 2026

Copy link
Copy Markdown
Owner

What Changed

  • Add .github/workflows/zizmor.yml. It runs the SHA-pinned zizmorcore/zizmor-action on pushes and pull requests to main. It uses empty top-level permissions, job-level contents: read and actions: read, and advanced-security: false.
  • Set persist-credentials: false on every actions/checkout step 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: false on 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.

  • Live validation: ✅ go - 2 of 3 scenarios driven live against the product
Scenario Result Live Evidence
zizmor audits all workflow files at HEAD and reports no findings ✅ pass live zizmor-head.txt
Adversarial: zizmor on base-commit workflows reports the credential-persistence findings that the change fixes ✅ pass live zizmor-base.txt
The zizmor workflow runs on pull requests to main in the GitHub-hosted action ⏸️ untested no GitHub-hosted Actions cannot run from this worktree, and pushing is outside this phase. Remote CI will exercise it.
Evidence: zizmor head
 INFO zizmor::registry: skipping impostor-commit: can't run without a GitHub API token
 INFO zizmor::registry: skipping ref-confusion: can't run without a GitHub API token
 INFO zizmor::registry: skipping known-vulnerable-actions: can't run without a GitHub API token
 INFO zizmor::registry: skipping forbidden-uses: audit not configured
 INFO zizmor::registry: skipping stale-action-refs: can't run without a GitHub API token
 INFO audit: zizmor: 🌈 completed .github/workflows/ci.yml
 INFO audit: zizmor: 🌈 completed .github/workflows/no-mistakes-required.yml
 INFO audit: zizmor: 🌈 completed .github/workflows/zizmor.yml
No findings to report. Good job! (4 suppressed)
Evidence: zizmor base
 INFO zizmor::registry: skipping impostor-commit: can't run without a GitHub API token
 INFO zizmor::registry: skipping ref-confusion: can't run without a GitHub API token
 INFO zizmor::registry: skipping known-vulnerable-actions: can't run without a GitHub API token
 INFO zizmor::registry: skipping forbidden-uses: audit not configured
 INFO zizmor::registry: skipping stale-action-refs: can't run without a GitHub API token
 INFO audit: zizmor: 🌈 completed /var/folders/m7/v02n8pqn167dn42b0vdb3l4h0000gn/T/tmp.CxV1LgAL0c/.github/workflows/ci.yml
 INFO audit: zizmor: 🌈 completed /var/folders/m7/v02n8pqn167dn42b0vdb3l4h0000gn/T/tmp.CxV1LgAL0c/.github/workflows/no-mistakes-required.yml
warning[artipacked]: credential persistence through GitHub Actions artifacts
  --> /var/folders/m7/v02n8pqn167dn42b0vdb3l4h0000gn/T/tmp.CxV1LgAL0c/.github/workflows/ci.yml:16:9
   |
16 |       - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
   |         -------------------------------------------------------------------- does not set persist-credentials: false
   |
   = note: audit confidence → Low
   = note: this finding has an auto-fix

warning[artipacked]: credential persistence through GitHub Actions artifacts
  --> /var/folders/m7/v02n8pqn167dn42b0vdb3l4h0000gn/T/tmp.CxV1LgAL0c/.github/workflows/ci.yml:31:9
   |
31 |       - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
   |         -------------------------------------------------------------------- does not set persist-credentials: false
   |
   = note: audit confidence → Low
   = note: this finding has an auto-fix

warning[artipacked]: credential persistence through GitHub Actions artifacts
  --> /var/folders/m7/v02n8pqn167dn42b0vdb3l4h0000gn/T/tmp.CxV1LgAL0c/.github/workflows/ci.yml:38:9
   |
38 |       - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
   |         -------------------------------------------------------------------- does not set persist-credentials: false
   |
   = note: audit confidence → Low
   = note: this finding has an auto-fix

6 findings (3 suppressed, 3 fixable): 0 unknown, 0 informational, 0 low, 3 medium, 0 high

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 1 info
  • ℹ️ .github/workflows/zizmor.yml:21 - zizmor-action is pinned by SHA, but it installs zizmor latest by default because no version: input is set. A new zizmor release can add audits that fail PR CI with no repo change. Set version: 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.

  • Live validation: ✅ go - 2 of 3 scenarios driven live against the product
Scenario Result Live Evidence
zizmor audits all workflow files at HEAD and reports no findings ✅ pass live zizmor-head.txt
Adversarial: zizmor on base-commit workflows reports the credential-persistence findings that the change fixes ✅ pass live zizmor-base.txt
The zizmor workflow runs on pull requests to main in the GitHub-hosted action ⏸️ untested no GitHub-hosted Actions cannot run from this worktree, and pushing is outside this phase. Remote CI will exercise it.
  • nix develop --no-pure-eval --command go test ./...
  • zizmor --offline .github/workflows at HEAD: no findings
  • zizmor --offline on base-commit workflows: 3 medium artipacked findings
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@Azd325
Azd325 merged commit 63dc488 into main Oct 18, 2026
5 checks passed
@Azd325
Azd325 deleted the fm/ci-zizmor-router-axi branch October 18, 2026 11:02
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