Skip to content

Commit 66bd706

Browse files
committed
Fix shell injection: pass github.ref_name via env var in deploy workflow
1 parent 9579d32 commit 66bd706

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ jobs:
8686
- name: Create GitHub release
8787
env:
8888
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
REF_NAME: ${{ github.ref_name }}
8990
run: |
90-
gh release create "${{ github.ref_name }}" \
91-
--title "${{ github.ref_name }}" \
91+
gh release create "$REF_NAME" \
92+
--title "$REF_NAME" \
9293
--generate-notes

0 commit comments

Comments
 (0)