Skip to content

Remove unused dind-up-action composite action - #41585

Merged
derrickaw merged 2 commits into
masterfrom
codescan/gha-dind-up-action-hardening
Nov 24, 2026
Merged

derrickaw merged 2 commits into
masterfrom
codescan/gha-dind-up-action-hardening

Conversation

@derrickaw

@derrickaw derrickaw commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

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

Removes the orphaned .github/actions/dind-up-action/action.yml composite action, eliminating all 27 open zizmor Code Scanning alerts (#103–#129: 25 zizmor/template-injection and 2 zizmor/github-env):

  • .github/actions/dind-up-action/action.yml was originally introduced in #35889 solely for beam_PreCommit_Python_Coverage.yml.
  • #37711 (caf661798f7) removed its last caller in beam_PreCommit_Python_Coverage.yml, leaving zero references to dind-up-action anywhere in apache/beam.

Verification

  • Confirmed zero references to dind-up-action across the repository (git grep dind-up-action)
  • ./gradlew :beam-test-gha:preCommit

NOTE: This PR was originally setup to fix zizmor only findings and keep the workflow in-place. But we noticed this workflow is dead code so changed the PR to just delete instead. If we shouldn't delete, please let me know. Thanks

@derrickaw

Copy link
Copy Markdown
Collaborator Author

/gemini review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📋 Review Summary

This PR cleanly hardens .github/actions/dind-up-action/action.yml against template injection and environment variable injection (zizmor/template-injection and zizmor/github-env) by moving GitHub Actions expressions into step-level env: blocks and replacing $GITHUB_ENV usage for internal step state with $GITHUB_OUTPUT.

🔍 General Feedback

  • Default value fallbacks (${VAR:-default}), positional argument passing to subshells (bash -c '...' _ "${HOST}" "${PORT}"), and newline validation before writing to $GITHUB_ENV are all implemented idiomatically and preserve existing action behavior.
  • No issues found; the changes are ready to merge.

💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.

@github-actions github-actions Bot added the size/m M: 50-249 lines changed label Nov 23, 2026
@derrickaw derrickaw added the ready-for-human Draft PR with all checks passing and all review comments resolved, ready for human review label Nov 23, 2026
@derrickaw derrickaw changed the title Pass inputs and step outputs via env in dind-up-action Remove unused dind-up-action composite action Nov 23, 2026
@derrickaw derrickaw removed the ready-for-human Draft PR with all checks passing and all review comments resolved, ready for human review label Nov 23, 2026
@derrickaw

Copy link
Copy Markdown
Collaborator Author

/gemini review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📋 Review Summary

This PR cleanly removes the unused .github/actions/dind-up-action/action.yml composite action, which is no longer referenced in any GitHub Actions workflows following the removal of DinD from beam_PreCommit_Python_Coverage in commit caf661798f7.

🔍 General Feedback

  • Confirmed that no workflows, composite actions, or documentation reference dind-up-action.
  • Removing this dead action simplifies CI maintenance and eliminates potential static analysis/linting issues from unused workflow definitions.

💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.

@github-actions github-actions Bot added size/xs XS: <10 lines changed and removed size/m M: 50-249 lines changed labels Nov 23, 2026
@derrickaw derrickaw added ready-for-human Draft PR with all checks passing and all review comments resolved, ready for human review and removed ready-for-human Draft PR with all checks passing and all review comments resolved, ready for human review labels Nov 23, 2026
@derrickaw
derrickaw marked this pull request as ready for review November 23, 2026 17:39
@github-actions

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @chamikaramj added as fallback since no labels match configuration
Backup reviewer: damccorm (if the main reviewer is unresponsive, you can escalate to them by tagging their username)

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants