Repository navigation
Disable zizmor self-repository rule in .github/zizmor.yml - #41637
Merged
Merged
Conversation
Collaborator
Author
|
/gemini review |
Contributor
There was a problem hiding this comment.
📋 Review Summary
This PR disables the Note-severity self-repository rule in .github/zizmor.yml to reduce alert noise from workspace-relative local composite action references (./.github/actions/...). The configuration syntax and security rationale are sound, as none of the privileged pull_request_target or workflow_run workflows check out untrusted PR refs before invoking local composite actions.
🔍 General Feedback
- The
zizmor.ymlrule configuration (disable: trueunderrules.self-repository) is valid and well-documented with inline comments explaining the security trade-offs. - Note that
Uses_::Self($/.github/actions/...) does not exist in GitHub Actions syntax;zizmor'sself-repositoryaudit actually flags explicit self-repo references (apache/beam/...) vs local paths (./...), or vice-versa depending on persona, so disabling this pedantic rule is an appropriate choice for the repository.
💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.
derrickaw
marked this pull request as ready for review
November 24, 2026 18:46
This was referenced Nov 24, 2026
This was referenced Nov 24, 2026
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.
Note: this PR was auto-generated by tooling. Before moving it out of draft, the author has done a full review of the PR, specifically evaluating it on the following criteria:
CodeQL/zizmor) onmasterwithout altering intended public API or workflow semanticsIf you have concerns with the PR or with the underlying methodology used to generate this, please comment below - they will be addressed by the author not the tooling :)
Summary
Selectively disables the
Note-severityzizmor/self-repositoryaudit rule in.github/zizmor.ymlwhile keeping all otherzizmorsecurity audits (includingNote-levelartipackedandtemplate-injectionchecks) active:self-repository(~1,230 openNotealerts across ~300 workflows):self-repositoryrecommends replacinguses: ./.github/actions/...($GITHUB_WORKSPACE) withuses: $/.github/actions/...(apache/beam@<workflow_sha>).pull_request_targetorworkflow_runworkflows that explicitly check out an untrusted fork PR'sHEADinto$GITHUB_WORKSPACEbefore invoking./.github/actions/....pull_request_targetandworkflow_runworkflows in.github/workflows/(cancel.yml,gemini_code_review.yml,label_prs.yml,pr-bot-pr-updates.yml): none check out an untrusted PR ref before invoking local composite actions (gemini_code_review.ymlandlabel_prs.ymlhave no checkout;pr-bot-pr-updates.ymlchecks outref: masterwith zero local actions;cancel.ymlchecks out defaultmaster).pull_request,push,schedule, andworkflow_dispatchworkflows (~99%+ of Beam workflows),$GITHUB_WORKSPACEand$resolve to the identical commit, so migrating ~300 workflow files across ~20+ PRs adds review churn without meaningful security benefit.High/Mediumrules (template-injection,dangerous-triggers,github-env,excessive-permissions,dependabot-cooldown) as well as actionableNoterules (artipacked, low-confidencetemplate-injection) enabled.Verification
zizmor --config .github/zizmor.yml --persona=pedanticthatself-repositoryfindings are suppressed whileexcessive-permissionsandtemplate-injection(HighandNote) continue to report normally../gradlew :beam-test-gha:preCommit