derrickaw opened a new pull request, #41605:
URL: https://github.com/apache/beam/pull/41605
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
Resolves all **6** open `zizmor/template-injection` (`High / error` &
`Note`, alerts `#168`–`#173`) findings in
`.github/actions/setup-k8s-access/action.yml`:
- Pass `inputs.k8s_namespace`, `inputs.cluster_name`, `inputs.cluster_zone`,
`inputs.remove_finalizer`, and `steps.replace_namespace.outputs.TEST_NAMESPACE`
via step-level `env:` variables instead of interpolating `${{ ... }}` directly
inside `bash` `run:` and `with-post-step` `post:` scripts.
- Strip carriage returns/newlines with `printf '%s' "${K8S_NAMESPACE}" | tr
-d '\r\n'` before writing `TEST_NAMESPACE` to `$GITHUB_OUTPUT` and quote all
shell expansions.
### Verification
- `zizmor --config .github/zizmor.yml --persona=pedantic
.github/actions/setup-k8s-access/action.yml` (`0` findings)
- `./gradlew :beam-test-gha:preCommit` and `bash -n` / `sh -n` across all
`run` and `post` scripts
- Sample caller workflow (`beam_PostCommit_Java_InfluxDbIO_IT.yml`)
verification on branch `codescan/gha-setup-k8s-access-env` in progress (will
link run URL once complete before marking ready)
--
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]