2020 # Allow workflow to be triggered manually.
2121 workflow_dispatch :
2222
23+ permissions :
24+ contents : read
25+
2326jobs :
2427 stage_release :
2528 # To publish a release, merge the release PR with the label 'release:publish'.
@@ -34,15 +37,17 @@ jobs:
3437
3538 steps :
3639 - name : Checkout source for staging
37- uses : actions/checkout@v3
40+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
41+ with :
42+ persist-credentials : false
3843
3944 - name : Set up Python
40- uses : actions/setup-python@v4
45+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
4146 with :
4247 python-version : ' 3.10'
4348
4449 - name : Install uv
45- uses : astral-sh/setup-uv@v3
50+ uses : astral-sh/setup-uv@caf0cab7a618c569241d31dcd442f54681755d39 # v3.2.4
4651 with :
4752 enable-cache : true
4853
6267 # Attach the packaged artifacts to the workflow output. These can be manually
6368 # downloaded for later inspection if necessary.
6469 - name : Archive artifacts
65- uses : actions/upload-artifact@v4
70+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
6671 with :
6772 name : dist
6873 path : dist/
@@ -92,11 +97,13 @@ jobs:
9297
9398 steps :
9499 - name : Checkout source for publish
95- uses : actions/checkout@v4
100+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
101+ with :
102+ persist-credentials : false
96103
97104 # Download the artifacts created by the stage_release job.
98105 - name : Download release candidates
99- uses : actions/download-artifact@v4.1.7
106+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
100107 with :
101108 name : dist
102109 path : dist
@@ -111,7 +118,7 @@ jobs:
111118 - name : Create release tag
112119 # Skip creating a release tag for prereleases
113120 if : (!contains(github.event.pull_request.labels.*.name, 'release:prerelease'))
114- uses : fleskesvor/create-release@1a72e235c178bf2ae6c51a8ae36febc24568c5fe
121+ uses : fleskesvor/create-release@1a72e235c178bf2ae6c51a8ae36febc24568c5fe # zizmor: ignore[unpinned-uses]
115122 env :
116123 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
117124 with :
@@ -122,4 +129,4 @@ jobs:
122129 prerelease : false
123130
124131 - name : Publish to Pypi
125- uses : pypa/gh-action-pypi-publish@release/v1
132+ uses : pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
0 commit comments