Skip to content

Commit 5ccae5b

Browse files
eddiebergmanclaude
andauthored
ci: pin release-publish.yml actions to commit SHAs (#1079)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5426354 commit 5ccae5b

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/release-publish.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
version: ${{ steps.ver.outputs.version }}
1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v7.0.0
20+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2121

2222
- name: Extract version from tag
2323
id: ver
@@ -46,7 +46,7 @@ jobs:
4646
PY
4747
4848
- name: Install uv
49-
uses: astral-sh/setup-uv@v7
49+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
5050
with:
5151
version: "latest"
5252
enable-cache: true
@@ -82,14 +82,14 @@ jobs:
8282
PY
8383
8484
- name: Upload build artifacts
85-
uses: actions/upload-artifact@v7
85+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
8686
with:
8787
name: dist
8888
path: dist/
8989
retention-days: 7
9090

9191
- name: Upload release notes
92-
uses: actions/upload-artifact@v7
92+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
9393
with:
9494
name: release_notes
9595
path: release_notes.md
@@ -106,20 +106,20 @@ jobs:
106106
id-token: write
107107
steps:
108108
- name: Download build artifacts
109-
uses: actions/download-artifact@v8
109+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
110110
with:
111111
name: dist
112112
path: dist/
113113

114114
- name: Publish to TestPyPI
115-
uses: pypa/gh-action-pypi-publish@v1.14.0
115+
uses: pypa/gh-action-pypi-publish@6733eb7d741f0b11ec6a39b58540dab7590f9b7d # v1.14.0
116116
with:
117117
repository-url: https://test.pypi.org/legacy/
118118
print-hash: true
119119
skip-existing: true
120120

121121
- name: Install uv
122-
uses: astral-sh/setup-uv@v7
122+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
123123
with:
124124
version: "latest"
125125
enable-cache: true
@@ -160,22 +160,22 @@ jobs:
160160
id-token: write
161161
steps:
162162
- name: Download build artifacts
163-
uses: actions/download-artifact@v8
163+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
164164
with:
165165
name: dist
166166
path: dist/
167167

168168
- name: Publish to PyPI
169-
uses: pypa/gh-action-pypi-publish@v1.14.0
169+
uses: pypa/gh-action-pypi-publish@6733eb7d741f0b11ec6a39b58540dab7590f9b7d # v1.14.0
170170
with:
171171
print-hash: true
172172
skip-existing: true
173173

174174
- name: Checkout code
175-
uses: actions/checkout@v7.0.0
175+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
176176

177177
- name: Download release notes
178-
uses: actions/download-artifact@v8
178+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
179179
with:
180180
name: release_notes
181181
path: .

0 commit comments

Comments
 (0)