Skip to content

Commit 2adcf52

Browse files
committed
ci: Quote Github variable expansion.
This prevents tag names from injecting Bash commands into the release note creation step.
1 parent dd0fac9 commit 2adcf52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
156156
run: |
157157
set -e
158-
git for-each-ref ${{ github.ref }} --format='%(contents)' > release-notes.rst
158+
git for-each-ref "${{ github.ref }}" --format='%(contents)' > release-notes.rst
159159
# Strip PGP signature from signed tags
160160
sed -i "/-----BEGIN PGP SIGNATURE-----/,/-----END PGP SIGNATURE-----\n/d" release-notes.rst
161161
- name: Convert Release Notes to Markdown

0 commit comments

Comments
 (0)