Skip to content

Commit 737c1b4

Browse files
authored
Mitigate potential template injection in CI workflow (#7982)
1 parent f7e3343 commit 737c1b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ jobs:
272272
gh extension install actions/gh-actions-cache
273273
gh actions-cache delete ${{ steps.compiler-build-state-key.outputs.value }} \
274274
-R ${{ github.repository }} \
275-
-B ${{ github.ref }} \
275+
-B "$GITHUB_REF" \
276276
--confirm || echo "not exist"
277277
env:
278278
GH_TOKEN: ${{ github.token }}
@@ -529,7 +529,7 @@ jobs:
529529
git config --global user.name "github-actions[bot]"
530530
git config --global user.email "github-actions@rescript-lang.org"
531531
git add data/api
532-
git commit -m "Update API docs for ${{ github.ref_name }}"
532+
git commit -m "Update API docs for $GITHUB_REF_NAME"
533533
git push
534534
535535
test-installation-npm:

0 commit comments

Comments
 (0)