Skip to content

Commit e055e70

Browse files
authored
chore(ci): prevent parameter injection in make-version workflow (#4900)
1 parent d52633a commit e055e70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/make-version.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ jobs:
4848
id: version-n-changelog
4949
uses: aws-powertools/actions/.github/actions/version-n-changelog@3b5b8e2e58b7af07994be982e83584a94e8c76c5 # v1.5.0
5050
with:
51-
release-type: ${{ github.event.inputs.release-type }}
51+
release-type: ${{ env.RELEASE_TYPE }}
52+
env:
53+
RELEASE_TYPE: ${{ github.event.inputs.release-type }}
5254
- name: Update user agent version
5355
run: |
5456
echo -e "// this file is auto generated, do not modify\nexport const PT_VERSION = '${{ steps.version-n-changelog.outputs.new-version }}';" > packages/commons/src/version.ts

0 commit comments

Comments
 (0)