Repository navigation
Description
zizmor runs in CI as a blocking check (#6251 added it advisory, #6274 made it gate at medium). This issue tracked working through what it reported.
111 findings at the start → 0.
GH_TOKEN=$(gh auth token) pipx run zizmor==1.29.0 --persona=regular .github/
No findings to report. Good job!
zizmor defaults to offline mode — run it with GH_TOKEN set or the numbers won't match, since offline hides some rules and rates artipacked higher than it deserves.
What landed
| PR | What |
|---|---|
| #6251 | Adopt zizmor (advisory); stop running each security scan twice per PR |
| #6254 | unpinned-uses ×11, ref-version-mismatch ×4 |
| #6255 | artipacked ×20 across 12 CI workflows |
| #6258 | template-injection ×16, artipacked ×7, excessive-permissions ×1 |
| #6259 | Size labeler no longer takes its target from an artifact a pull request controls |
| #6260 | @claude gated on write access rather than contribution history |
| #6261 | Removed the now-unread PR number from the size artifact |
| #6262 | Four findings suppressed, each with its reasoning in the workflow |
| #6263 | releaser.yml permissions scoped; tag expression bound |
| #6266 | Release app token scoped to contents + pull-requests |
| #6269 | Test workflows receive one named secret instead of every repository secret |
| #6270 | helm-publish.yml GHCR credentials and chart version bound |
| #6272 | The last two app tokens scoped; commit trailer bound |
| #6274 | The check now blocks, at medium |
| #6275 | helm-publish.yml cleared entirely |
| #6281 | The last 13 — create-release-tag.yml, releaser.yml, create-release-pr.yml |
Every rule reached zero: unpinned-uses, ref-version-mismatch, template-injection, artipacked, secrets-inherit, github-app, excessive-permissions, dangerous-triggers.
The four that are suppressed rather than fixed (#6262)
Each carries its justification inline, so the reasoning sits with the code:
pr-size-label-apply.yml,release-notes.yml—dangerous-triggers. Theworkflow_runtrigger cannot be dropped in either case; the weakness that made the first dangerous was fixed in Derive PR number from the triggering run in the size labeler #6259, and the second checks out the default branch rather than an event-supplied ref.claude.yml—artipacked.contents: writeexists so Claude can push commits; the credential is in use. Do not "fix" this one.api-compat.yml—artipacked. Cannot push, runs agit fetch, and is the repository's only required status check.
Things worth remembering
--format=sarifsuppresses zizmor's findings exit code. The zizmor action's documented Advanced Security usage therefore reports without gating.security-scan.ymlcalls the action twice for that reason: once to report at every severity and upload SARIF, once withadvanced-security: falseto gate.workflow_runconsumers always run the copy of the workflow on the default branch. A pull request can change a producer but not the consumer reading its output, which is why Derive PR number from the triggering run in the size labeler #6259 and Stop writing the PR number into the size label artifact #6261 had to be split.workflow_run.pull_requestsis empty for fork pull requests — and for most same-repository ones. Measured over 30 runs before relying on it.- A job's
permissions:is the reliable test for whether a checkout needs its credential, far more so than grepping forgit push. A job withcontents: readcannot push whatever it runs. arduino/setup-task@v2was a branch, not a tag. Worth checking before assuming a@vNreference is immutable.
Follow-up
The gate sits at medium. With nothing left for it to catch, it could drop to low or lower — worth doing once a release has passed through the changed release workflows unchanged, rather than stacking two untested changes on the same release.
actionlint is still not in CI, which is how #6265 went unnoticed.
Activity
ChrisJBurns commentedon Aug 10, 2026
Status update — PRs in flight:
ref-version-mismatch+ duplicate-scan removalunpinned-uses×11,ref-version-mismatch×4artipacked×18 (CI workflows), stacked on #6254Two corrections to the numbers first posted here, both from the same mistake — measuring on a feature branch rather than
main:ref-version-mismatchis 5 onmain, not 6. The 6th only exists on the Add zizmor to CI and stop double-running the security scan #6251 branch, which adds a secondupload-sarifreference.artipackedis 37 onmain, not 38. The 38th was the zizmor job’s own checkout, before that PR setpersist-credentials: falseon it in response to a code scanning finding.Also corrected in §4: #6251 does not fix either
security-scan.ymlartipackedfinding. Those two are the Grype and govulncheck checkouts and are untouched — they are held back purely to avoid a branch conflict, so they are the cheapest thing to pick up once #6251 lands.ChrisJBurns commentedon Aug 10, 2026
#6255 merged. Measured against
mainatb20cb9f:unpinned-usesref-version-mismatchartipackedtemplate-injectionTwo findings worth flagging from re-checking the remainder:
issue-triage.ymldeclarescontents: read, so itsartipackedfinding is provably safe to fix — no job in it can push. That is now the cheapest thing left on the list.claude.ymldeclarescontents: write, so it genuinely can push and is the one agent workflow that needs thought rather than a one-line change.Checking
permissions:turned out to be the reliable test throughout — far more dependable than reading the steps forgit push. It is what maderelease-notes.ymlsafe to include in #6258 despite it runningclaude-code-action.ChrisJBurns commentedon Aug 10, 2026
Situation report — measured against
mainataa1628e.111 → 47. #6259 and #6260 have merged, so this issue now carries the complete inventory:
dangerous-triggers,github-app,secrets-inheritandexcessive-permissionswere previously held back while the weaknesses they pointed at were unfixed, and are folded in above.Two rules are fully cleared —
unpinned-uses(11 → 0) andref-version-mismatch(5 → 0).What changed in the shape of the problem: the backlog is no longer spread across the repository. 39 of the remaining 47 are in the four release workflows, and 8 of the 10 remaining High-severity findings are there. Everything outside them is either one investigation (
secrets-inherit), two justified suppressions, or two accepted findings.One correction worth recording: the two
dangerous-triggersfindings are now mitigated rather than fixable — zizmor flags theworkflow_runtrigger itself, which is not going away in either workflow. They need# zizmor: ignore[dangerous-triggers]with the reasoning written down, not a code change. Suppressing them without that would defeat the point of the gate.ChrisJBurns commentedon Aug 10, 2026
Final state: 111 findings → 0.
Note this issue auto-closed when #6274 merged, one pull request early — #6281 carries the last 13 findings and is still open. Verified that
mainwith #6281 merged reports nothing;mainon its own is at 13, all low or informational, none of which the gate blocks on.Every rule is now at zero, and the four findings that cannot be fixed are suppressed with their reasoning recorded in the workflows rather than only here.