Skip to content

fix: mitigate script injection in release workflow#506

Merged
yaythomas merged 1 commit into
mainfrom
fix/script-injection-env-vars
Jun 30, 2026
Merged

fix: mitigate script injection in release workflow#506
yaythomas merged 1 commit into
mainfrom
fix/script-injection-env-vars

Conversation

@yaythomas

Copy link
Copy Markdown
Collaborator

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

Issue Link, if available

Description

Move workflow_dispatch input interpolations from inline run scripts to intermediate environment variables. This prevents context values from being interpreted as shell syntax during script generation.

Also fix the duplicate step name 'Commit release version' to 'Commit next development version' for the second commit step.

Demo/Screenshots

Checklist

  • [ x] I have filled out every section of the PR template
  • [ x] I have thoroughly tested this change

Testing

Unit Tests

Have unit tests been written for these changes?

Integration Tests

Have integration tests been written for these changes?

Examples

Has a new example been added for the change? (if applicable)

Move workflow_dispatch input interpolations from inline run scripts
to intermediate environment variables. This prevents context values
from being interpreted as shell syntax during script generation.

Also fix the duplicate step name 'Commit release version' to
'Commit next development version' for the second commit step.
@yaythomas yaythomas requested a review from a team June 29, 2026 22:46
git config user.email "${{ github.actor }}+github-actions[bot]@users.noreply.github.com"
git config user.name "${{ github.actor }}+github-actions[bot]"
git config user.email "${GIT_ACTOR}+github-actions[bot]@users.noreply.github.com"
git config user.name "${GIT_ACTOR}+github-actions[bot]"

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.

No special character is allowed in github username.

@yaythomas yaythomas merged commit 0097f4a into main Jun 30, 2026
8 checks passed
@yaythomas yaythomas deleted the fix/script-injection-env-vars branch June 30, 2026 00:03
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.

3 participants