Skip to content

Commit e8d684a

Browse files
committed
address feedback: prevent shell command injection
1 parent 167d444 commit e8d684a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ jobs:
2121
fetch-depth: 0
2222
- run: |-
2323
if ! git merge-base --is-ancestor "$GITHUB_SHA" origin/release; then
24-
echo "::error::Tag ${{ github.event.release.tag_name }} ($GITHUB_SHA) is not on the release branch"
24+
printf '::error::Tag %s (%s) is not on the release branch\n' "$RELEASE_TAG" "$GITHUB_SHA"
2525
exit 1
2626
fi
27+
env:
28+
RELEASE_TAG: ${{ github.event.release.tag_name }}
2729
test:
2830
needs: verify_release_branch
2931
uses: ./.github/workflows/test.yml

0 commit comments

Comments
 (0)