Skip to content

Fix template injection in release/build workflows - #335

Open
ratelle wants to merge 1 commit into
masterfrom
security/workflow-template-injection
Open

Fix template injection in release/build workflows#335
ratelle wants to merge 1 commit into
masterfrom
security/workflow-template-injection

Conversation

@ratelle

@ratelle ratelle commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Aikido critical 356805572.

github.ref_name and inputs.version were interpolated directly into run: blocks. A tag matching v[0-9]+.[0-9]+.[0-9]+-* can carry an arbitrary suffix, so v1.2.3-$(...) executes on the runner — which has id-token: write plus npm and GCP credentials.

Values now pass through env: and are referenced as shell variables.

Prevents shell injection through github.ref_name / inputs.version in
release and build workflow run steps.
@ratelle
ratelle marked this pull request as ready for review September 9, 2026 01:44
@ratelle
ratelle requested review from a team as code owners September 9, 2026 01:44
@ratelle
ratelle requested a review from juliorafaelr September 9, 2026 01:44
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