Skip to content

Commit a9cf443

Browse files
committed
Move release and tag version into env vars to prevent template injection
Made-with: Cursor
1 parent 1a332b2 commit a9cf443

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ jobs:
4949

5050
- name: Get the changelog underline
5151
id: changelog_underline
52+
env:
53+
RELEASE: ${{ steps.calver.outputs.release }}
5254
run: |
53-
underline="$(echo "${{ steps.calver.outputs.release }}" | tr -c '\n' '-')"
55+
underline="$(echo "$RELEASE" | tr -c '\n' '-')"
5456
echo "underline=${underline}" >> "$GITHUB_OUTPUT"
5557
5658
- name: Update changelog
@@ -95,9 +97,11 @@ jobs:
9597
body: ${{ steps.tag_version.outputs.changelog }}
9698

9799
- name: Build a binary wheel and a source tarball
100+
env:
101+
NEW_TAG: ${{ steps.tag_version.outputs.new_tag }}
98102
run: |
99103
git fetch --tags
100-
git checkout ${{ steps.tag_version.outputs.new_tag }}
104+
git checkout "$NEW_TAG"
101105
uv build --sdist --wheel --out-dir dist/
102106
uv run --extra=release check-wheel-contents dist/*.whl
103107

0 commit comments

Comments
 (0)