Skip to content

Prevent script injection in GHA workflows - #863

Merged
rakshil14-2 merged 3 commits into
mainfrom
fix-script-injection
Jun 30, 2026
Merged

Prevent script injection in GHA workflows#863
rakshil14-2 merged 3 commits into
mainfrom
fix-script-injection

Conversation

@rakshil14-2

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:
Move untrusted github.event.* interpolations out of run: blocks and into env: variables, then reference via "$VAR" inside the shell script. Eliminates script-injection sinks flagged by AppSec.

Affected workflows:
release.yml (release.tag_type)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rakshil14-2
rakshil14-2 force-pushed the fix-script-injection branch from 482b08d to ecabda7 Compare June 29, 2026 20:34
@rakshil14-2
rakshil14-2 force-pushed the fix-script-injection branch from ecabda7 to 8948be5 Compare June 29, 2026 23:18
@rakshil14-2
rakshil14-2 merged commit b85da05 into main Jun 30, 2026
43 checks passed
@rakshil14-2
rakshil14-2 deleted the fix-script-injection branch June 30, 2026 16:36
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.

2 participants