Skip to content

Commit 5e4e015

Browse files
committed
Use environment variables instead of contexts
Fixes potential issues found by zizmor: https://github.com/woodruffw/zizmor
1 parent 13308d5 commit 5e4e015

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ jobs:
7878
GITHUB_TOKEN: ${{ github.token }}
7979
run: >-
8080
gh release create
81-
'${{ github.ref_name }}'
82-
--repo '${{ github.repository }}'
81+
"$GITHUB_REF_NAME"
82+
--repo "$GITHUB_REPOSITORY"
8383
--notes ""
8484
- name: Upload artifact signatures to GitHub Release
8585
env:
@@ -89,8 +89,8 @@ jobs:
8989
# sigstore-produced signatures and certificates.
9090
run: >-
9191
gh release upload
92-
'${{ github.ref_name }}' dist/**
93-
--repo '${{ github.repository }}'
92+
"$GITHUB_REF_NAME" dist/**
93+
--repo "$GITHUB_REPOSITORY"
9494
9595
publish-to-testpypi:
9696
name: Publish Python 🐍 distribution 📦 to TestPyPI

0 commit comments

Comments
 (0)