Skip to content

Commit fe434c3

Browse files
authored
Merge pull request #1765 from tomkins/zizmor-actions-fixes
Use environment variables instead of contexts
2 parents e7acc02 + 146fde1 commit fe434c3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

+6-4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v4
12+
with:
13+
persist-credentials: false
1214
- name: Set up Python
1315
uses: actions/setup-python@v5
1416
with:
@@ -78,8 +80,8 @@ jobs:
7880
GITHUB_TOKEN: ${{ github.token }}
7981
run: >-
8082
gh release create
81-
'${{ github.ref_name }}'
82-
--repo '${{ github.repository }}'
83+
"$GITHUB_REF_NAME"
84+
--repo "$GITHUB_REPOSITORY"
8385
--notes ""
8486
- name: Upload artifact signatures to GitHub Release
8587
env:
@@ -89,8 +91,8 @@ jobs:
8991
# sigstore-produced signatures and certificates.
9092
run: >-
9193
gh release upload
92-
'${{ github.ref_name }}' dist/**
93-
--repo '${{ github.repository }}'
94+
"$GITHUB_REF_NAME" dist/**
95+
--repo "$GITHUB_REPOSITORY"
9496
9597
publish-to-testpypi:
9698
name: Publish Python 🐍 distribution 📦 to TestPyPI

0 commit comments

Comments
 (0)