derrickaw opened a new pull request, #41637:
URL: https://github.com/apache/beam/pull/41637
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:
- The PR remediates confirmed, live Code Scanning finding(s) (`CodeQL` /
`zizmor`) on `master` without altering intended public API or workflow semantics
- The fix is minimal, idiomatic, and avoids suppressing alerts or masking
underlying defects
- Relevant unit tests, linters, and CI checks have been verified
If 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`-severity `zizmor/self-repository` audit rule
in `.github/zizmor.yml` while keeping all other `zizmor` security audits
(including `Note`-level `artipacked` and `template-injection` checks) active:
- **Why disable `self-repository` (~1,230 open `Note` alerts across ~300
workflows)**:
- `self-repository` recommends replacing `uses: ./.github/actions/...`
(`$GITHUB_WORKSPACE`) with `uses: $/.github/actions/...`
(`apache/beam@<workflow_sha>`).
- That distinction only affects privileged `pull_request_target` or
`workflow_run` workflows that explicitly check out an untrusted fork PR's
`HEAD` into `$GITHUB_WORKSPACE` before invoking `./.github/actions/...`.
- Audited all `pull_request_target` and `workflow_run` workflows 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.yml` and `label_prs.yml` have no
checkout; `pr-bot-pr-updates.yml` checks out `ref: master` with zero local
actions; `cancel.yml` checks out default `master`).
- On standard `pull_request`, `push`, `schedule`, and `workflow_dispatch`
workflows (~99%+ of Beam workflows), `$GITHUB_WORKSPACE` and `$` resolve to the
identical commit, so migrating ~300 workflow files across ~20+ PRs adds review
churn without meaningful security benefit.
- **Preserves real signal**: Keeps `High` / `Medium` rules
(`template-injection`, `dangerous-triggers`, `github-env`,
`excessive-permissions`, `dependabot-cooldown`) as well as actionable `Note`
rules (`artipacked`, low-confidence `template-injection`) enabled.
### Verification
- Verified locally with `zizmor --config .github/zizmor.yml
--persona=pedantic` that `self-repository` findings are suppressed while
`excessive-permissions` and `template-injection` (`High` and `Note`) continue
to report normally.
- `./gradlew :beam-test-gha:preCommit`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]