Skip to content

Commit 32cb580

Browse files
committed
Follow security guidelines with github actions
1 parent f11b521 commit 32cb580

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ jobs:
2424
git config --global user.name ${{ github.actor }}
2525
git config --global user.email ${{ github.actor }}@users.noreply.github.com
2626
- name: create a new branch that references commit id
27-
run: git checkout -b ${{ github.event.inputs.version_number }} ${{ github.event.inputs.commit_id }}
27+
env:
28+
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
29+
COMMIT_ID: ${{ github.event.inputs.commit_id }}
30+
run: git checkout -b "$VERSION_NUMBER" "$COMMIT_ID"
2831
- name: Tag Commit and Push to remote
32+
env:
33+
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
2934
run: |
30-
git tag ${{ github.event.inputs.version_number }} -a -m "Release ${{ github.event.inputs.version_number }}"
35+
git tag "$VERSION_NUMBER" -a -m "Release "$VERSION_NUMBER""
3136
git push origin --tags
3237
- name: Verify tag on remote
3338
env:

0 commit comments

Comments
 (0)