Repository navigation
ci: pin zizmor to 1.32.0 and ignore its new findings - #8316
Conversation
zizmor-action runs `latest`, and zizmor 1.32.0 fails every PR that
touches a workflow file. It flags the issue_comment triggers of
showcase_eval.yml and test_e2e-showcase-on-demand.yml (high), and
`fromJSON('"\n"')` in five workflows (low). Both comment triggers are
already gated on the commenter's access and run PR code with a read-only
token. The fromJSON call is how those workflows put a newline in a
one-line expression, and zizmor's own fix makes the YAML invalid.
The config ignores both, with the reasons, and the action now pins
1.32.0 so the next release can't break unrelated PRs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
|
🚅 Deployed to the CopilotKit-pr-8316 environment in showcase
51 services not affected by this PR
|
|
Size Change: 0 B Total Size: 2.47 MB ℹ️ View Unchanged
|
contextablemark
left a comment
There was a problem hiding this comment.
LGTM. I checked both comment-trigger workflows. The trust gates, the read-only token and persist-credentials: false on the PR-head checkout are all there as described. The jobs that hold write tokens don't run PR code; they only get its outputs through env. The five fromJSON('"\n"') files match the obfuscation list exactly, and pinning the version is the right call so a new zizmor release can't break unrelated PRs again.
What does this PR do?
Fixes the
Static analysis (zizmor)check, which fails on every PR that changes a workflow file. The cause is onmain, not in those PRs.security_zizmor.ymlruns zizmorlatest. Since the action bump in #7827, CI runs zizmor 1.32.0, which reports two new kinds of findings in files the failing PRs don't touch:dangerous-triggers(high): theissue_commenttriggers ofshowcase_eval.yml(/eval) andtest_e2e-showcase-on-demand.yml(/test). Both already run only for trusted commenters:showcase_eval.ymlchecks for write access withgetCollaboratorPermissionLevel, andtest_e2e-showcase-on-demand.ymlrequiresOWNER,MEMBERorCOLLABORATOR. Both check out PR-head code with acontents: readtoken andpersist-credentials: false. Each file's SECURITY header records the remaining TOCTOU risk.obfuscation(low):fromJSON('"\n"')inaeo_synthetics.yml,showcase_build.yml,showcase_validate.yml,test_smoke-starter.ymlandtest_starter-clean-install.yml. It is how those workflows put a newline inside a one-lineformat()expression. zizmor's--fix=safereplaces it with a literal newline, which makes the YAML invalid.This PR:
dangerous-triggers.ignore, with the reason, as the config asks for each new entry;obfuscation.ignorelist for the five workflows;1.32.0, so a future zizmor release can't fail unrelated PRs again. Bump it on purpose and update.github/zizmor.ymlin the same PR.Needs a maintainer's review: the config says every new
dangerous-triggerssuppression must be reviewed by a maintainer.Verification
uvx [email protected] --config .github/zizmor.yml --min-severity low .onmain: 2 high and 8 low findings, the same as CI.ghcr.io/zizmorcore/zizmor:1.32.0image exists, and zizmor-action v0.8.1 accepts an exactX.Y.Zversion.Related PRs and Issues
Checklist
!(for examplefeat(react-core)!: ...) and the description has aBREAKING CHANGE:line with migration steps. See VERSIONING.md🤖 Generated with Claude Code
Summary by CodeRabbit