1212 TAG : ${{ steps.get_tag.outputs.TAG }}
1313
1414 steps :
15- - uses : actions/checkout@v4
15+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+ with :
17+ persist-credentials : false
1618 - name : Set up Python
17- uses : actions/setup-python@v5
19+ uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
1820 with :
1921 python-version : " 3.x"
2022 - name : Install pypa/build
2325 - name : Build a binary wheel and a source tarball
2426 run : python3 -m build
2527 - name : Store the distribution packages
26- uses : actions/upload-artifact@v4
28+ uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
2729 with :
2830 name : python-package-distributions
2931 path : dist/
@@ -47,12 +49,12 @@ jobs:
4749
4850 steps :
4951 - name : Download all the dists
50- uses : actions/download-artifact@v4
52+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
5153 with :
5254 name : python-package-distributions
5355 path : dist/
5456 - name : Publish to PyPI
55- uses : pypa/gh-action-pypi-publish@release/v1
57+ uses : pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
5658
5759 compute-signatures :
5860 name : Compute SHA1 Sums and Sign with Sigstore
6567
6668 steps :
6769 - name : Download all the dists
68- uses : actions/download-artifact@v4
70+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
6971 with :
7072 name : python-package-distributions
7173 path : dist/
@@ -77,13 +79,13 @@ jobs:
7779 sha1sum $file > $file.sha1
7880 done
7981 - name : Sign the dists with Sigstore
80- 82+ uses : sigstore/gh-action-sigstore-python@f514d46b907ebcd5bedc05145c03b69c1edd8b46 # v3.0.0
8183 with :
8284 inputs : >-
8385 ./dist/*.tar.gz
8486 ./dist/*.whl
8587 - name : Store the distribution packages and signatures
86- uses : actions/upload-artifact@v4
88+ uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
8789 with :
8890 name : python-package-distributions-and-signatures
8991 path : dist/
@@ -101,7 +103,7 @@ jobs:
101103
102104 steps :
103105 - name : Download all the dists
104- uses : actions/download-artifact@v4
106+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
105107 with :
106108 name : python-package-distributions-and-signatures
107109 path : dist/
@@ -113,7 +115,7 @@ jobs:
113115 # we don't define it through this workflow.
114116 run : >-
115117 gh release create
116- '${{ env. TAG }}'
118+ "$ TAG"
117119 --repo '${{ github.repository }}'
118120 --generate-notes
119121 - name : Upload artifact signatures to GitHub Release
@@ -125,5 +127,5 @@ jobs:
125127 # sigstore-produced signatures and certificates.
126128 run : >-
127129 gh release upload
128- '${{ env. TAG }}' dist/**
130+ "$ TAG" dist/**
129131 --repo '${{ github.repository }}'
0 commit comments