Skip to content

Conversation

ezhang6811
Copy link
Contributor

Issue #, if available:

Description of changes:
Following https://docs.github.com/en/actions/reference/security/secure-use#use-an-intermediate-environment-variable, use environment variables instead of referencing Github workflow inputs directly in steps to prevent code injection.

Tested updated steps in my own fork: https://github.com/ezhang6811/aws-otel-python-instrumentation/actions/runs/18540890210

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

@ezhang6811 ezhang6811 requested a review from a team as a code owner October 15, 2025 20:02
@ezhang6811 ezhang6811 added the skip changelog doesn't need a CHANGELOG entry label Oct 15, 2025
SHA_SHORT: ${{ steps.commit.outputs.sha_short }}
run: |
echo "AWS OpenTelemetry Lambda Layer for Python version ${{ github.event.inputs.version }}-${{ steps.commit.outputs.sha_short }}" > release_notes.md
echo "AWS OpenTelemetry Lambda Layer for Python version ${VERSION}-${SHA_SHORT}" > release_notes.md
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need curly braces, do you?

$ AWSPulseEnablementCDK % export VERSION="asdf"                   
$ AWSPulseEnablementCDK % echo "abc $VERSION ${VERSION}"
abc asdf asdf

Seems to work either way.

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.

2 participants