derrickaw opened a new pull request, #41693:
URL: https://github.com/apache/beam/pull/41693
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 masking underlying defects
(false positives and noisy rules are dismissed or scoped via config rather than
code churn)
- Relevant unit tests, linters, Gemini review feedback, and live
`workflow_dispatch` runs (for workflow/action changes) have been verified
**Initiative Progress (as of `2026-11-26 00:59 UTC`)**: **`19` PRs merged so
far**, with **`~15` more PRs needed to be merged** to close out all actionable
Code Scanning findings (with `#41637` disabling `Note`-level
`zizmor/self-repository` warnings).
<details>
<summary><b>Code Scanning Remediation Context (End Goal, Scope &
Impact)</b></summary>
- **End Goal**: Drive `apache/beam`'s actionable `High` and `Medium` Code
Scanning backlog (`CodeQL` + `zizmor`) down to zero.
- **Config & Dismissals over Churn**:
- ~1,220 `Note`-level `zizmor/self-repository` warnings (~89% of all open
alerts) are handled via `.github/zizmor.yml` config (#41637) rather than
churning ~300 workflow files.
- Vendored third-party assets (e.g., Bootstrap JS), test-only helpers, and
scanner heuristics on public resource IDs are dismissed or excluded via config
rather than degrading code clarity.
- **Representative Impact So Far**:
- Archive path-traversal (`ZipSlip`) fixes in Java `ZipFiles.unzipFile`
(#41497) and Go xlang `expansionx` (#41589)
- Shell / template injection (`High`) fixes in shared CI composite actions
(#41515, #41592, #41605) and `pr-bot` (#41524)
- Least-privilege `GITHUB_TOKEN` scoping across CI and release workflows
(#41499, #41516, #41522, #41526, #41626, #41631) and dead-code removal (#41585)
</details>
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
Resolves the remaining 10 `High`-severity `zizmor` Code Scanning findings
across audited CI bot workflows and `gradle-command-self-hosted-action` while
keeping both rules enforced repository-wide:
- **`.github/zizmor.yml` (`zizmor/dangerous-triggers` —
[#3498](https://github.com/apache/beam/security/code-scanning/3498),
[#3499](https://github.com/apache/beam/security/code-scanning/3499),
[#3500](https://github.com/apache/beam/security/code-scanning/3500),
[#3502](https://github.com/apache/beam/security/code-scanning/3502),
[#3503](https://github.com/apache/beam/security/code-scanning/3503),
[#3508](https://github.com/apache/beam/security/code-scanning/3508),
[#3512](https://github.com/apache/beam/security/code-scanning/3512))**: Adds
path-scoped `ignore:` entries for the 5 audited PR/issue bot and CI
housekeeping workflows (`cancel.yml`, `gemini_code_review.yml`,
`label_prs.yml`, `pr-bot-pr-updates.yml`, `self-assign.yml`). All 5 require
`pull_request_target`, `workflow_run`, or `issue_comment` to operate on fork
PRs/issues, and none check out or execute untrusted PR code.
- **`.github/actions/gradle-command-self-hosted-action/action.yml`
(`zizmor/template-injection` —
[#130](https://github.com/apache/beam/security/code-scanning/130),
[#131](https://github.com/apache/beam/security/code-scanning/131),
[#132](https://github.com/apache/beam/security/code-scanning/132))**: Adds an
inline `# zizmor: ignore[template-injection]` annotation on the `Run Gradle
Command` step (`zizmor.yml` does not yet support subpath ignores for composite
`action.yml` files per `zizmor#1086`). Across all 516 workflow call sites,
callers pass shell-quoted multi-word flags, `\` line continuations, and `$VAR`
environment references solely from trusted repository configs (`matrix.*`,
static `env.*`, step outputs, and committer `workflow_dispatch` inputs) rather
than untrusted PR metadata.
## Verification
- `zizmor --config .github/zizmor.yml` across all 6 files (`0` findings)
- `./gradlew :beam-test-gha:preCommit` (`BUILD SUCCESSFUL`)
- Live `PreCommit GHA` (`zizmor` + allowlist + `:beam-test-gha:preCommit`)
verification on this PR branch in progress
--
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]