Skip to content

Commit cbc2738

Browse files
authored
ci: fix critical security vulnerability by prevent script injection (#323)
1 parent 265bc68 commit cbc2738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-dry-run.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
# Unset the `GITHUB_ACTIONS` environment variable to trick semantic-release into thinking it's not running in a CI environment,
6363
# as `--no-ci` alone is insufficient.
6464
#
65-
# Use `--branches '${{ github.head_ref }}'` to consider the PR head ref (source branch) as a release one for the dry run.
65+
# Use `--branches "${GITHUB_HEAD_REF}"` to consider the PR head ref (source branch) as a release one for the dry run.
6666
run: |
6767
unset GITHUB_ACTIONS
68-
npx --no-install semantic-release --dry-run --no-ci --branches '${{ github.head_ref }}'
68+
npx --no-install semantic-release --dry-run --no-ci --branches "${GITHUB_HEAD_REF}"

0 commit comments

Comments
 (0)