Skip to content

fix(repo): prevent script injection in release-docker workflow - #3024

Open
kopernic-pl wants to merge 1 commit into
developfrom
actions-sanitiization
Open

fix(repo): prevent script injection in release-docker workflow#3024
kopernic-pl wants to merge 1 commit into
developfrom
actions-sanitiization

Conversation

@kopernic-pl

Copy link
Copy Markdown
Contributor

Summary

Details

Using ${{ inputs.tag }} directly inside a run: block causes GitHub Actions to string-interpolate the value into the shell script before the shell parses it. A value containing shell metacharacters could execute arbitrary commands. The fix passes all context/input values through env: so the shell receives them as variable bindings rather than as part of the parsed command string.

${{ expression }} usage in with: ref: fields is intentionally left unchanged — those are YAML values passed to actions, not shell scripts, so they are not subject to this vulnerability.

Test plan

🤖 Generated with Claude Code

Replace direct ${{ expression }} interpolation inside run: blocks with
env: variable bindings to eliminate shell injection attack surface flagged
by Wiz IaC Scanner (alerts #9-#12 on release-docker.yml).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kopernic-pl
kopernic-pl requested a review from a team as a code owner July 31, 2026 12:01
@kopernic-pl kopernic-pl self-assigned this Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant