Skip to content

Commit 5ae826f

Browse files
nattb8claude
andcommitted
fix: avoid shell injection by passing TAG as env var not inline expression
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b2c1b6e commit 5ae826f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/tag.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ jobs:
5050
SHA=$(git rev-parse HEAD)
5151
gh api /repos/${{ github.repository }}/git/refs \
5252
--method POST \
53-
-f ref="refs/tags/${{ env.TAG }}" \
53+
-f ref="refs/tags/${TAG}" \
5454
-f sha="$SHA"
5555
env:
5656
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
TAG: ${{ env.TAG }}

0 commit comments

Comments
 (0)