Skip to content

fix: prevent script injection in workflows#336

Closed
thpierce wants to merge 1 commit intorelease/v1.8.xfrom
fix/prevent-script-injection-release-v1.8.x-cherrypick
Closed

fix: prevent script injection in workflows#336
thpierce wants to merge 1 commit intorelease/v1.8.xfrom
fix/prevent-script-injection-release-v1.8.x-cherrypick

Conversation

@thpierce
Copy link
Contributor

@thpierce thpierce commented Feb 9, 2026

Fixes https://t.corp.amazon.com/V1559008677

Cherry-picked from main (371c614) with conflict resolution.

Additional changes beyond cherry-pick:

  • Resolved merge conflicts due to different workflow file names (release_build.yml vs release-build.yml)
  • Fixed github.event usage in release_build.yml and release_lambda.yml
  • Added env variables for all workflow_dispatch inputs

Move github.event references to env vars to prevent script injection vulnerabilities in workflow run steps.

This follows the same pattern as aws-observability/aws-otel-js-instrumentation@3d9ac9d

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Fixes https://t.corp.amazon.com/V1559008677

Move github.event references to env vars to prevent script injection
vulnerabilities in workflow run steps.

This follows the same pattern as
aws-observability/aws-otel-js-instrumentation@3d9ac9d

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
@thpierce thpierce requested a review from a team as a code owner February 9, 2026 20:23
@thpierce thpierce added the skip changelog doesn't need a CHANGELOG entry label Feb 9, 2026
@thpierce
Copy link
Contributor Author

thpierce commented Feb 9, 2026

Closing to redo

@thpierce thpierce closed this Feb 9, 2026
@thpierce thpierce deleted the fix/prevent-script-injection-release-v1.8.x-cherrypick branch February 9, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changelog doesn't need a CHANGELOG entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments