Skip to content

Commit ca1b487

Browse files
committed
build: sign artifacts with sigstore
1 parent 610a56f commit ca1b487

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/kit.yml

+41
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ jobs:
149149
- name: "Install Python 3.8"
150150
uses: actions/setup-python@v4
151151
with:
152+
# PYVERSIONS
152153
python-version: "3.8"
153154
cache: pip
154155
cache-dependency-path: 'requirements/*.pip'
@@ -175,6 +176,7 @@ jobs:
175176
with:
176177
name: dist
177178
path: wheelhouse/*.whl
179+
retention-days: 7
178180

179181
sdist:
180182
name: "Source distribution"
@@ -186,6 +188,7 @@ jobs:
186188
- name: "Install Python 3.8"
187189
uses: actions/setup-python@v4
188190
with:
191+
# PYVERSIONS
189192
python-version: "3.8"
190193
cache: pip
191194
cache-dependency-path: 'requirements/*.pip'
@@ -207,6 +210,7 @@ jobs:
207210
with:
208211
name: dist
209212
path: dist/*.tar.gz
213+
retention-days: 7
210214

211215
pypy:
212216
name: "PyPy wheel"
@@ -241,3 +245,40 @@ jobs:
241245
with:
242246
name: dist
243247
path: dist/*.whl
248+
retention-days: 7
249+
250+
sign:
251+
# This signs our artifacts, but we don't use the signatures for anything
252+
# yet. Someday maybe PyPI will have a way to upload and verify them.
253+
name: "Sign artifacts"
254+
needs:
255+
- wheels
256+
- sdist
257+
- pypy
258+
runs-on: ubuntu-latest
259+
permissions:
260+
id-token: write
261+
steps:
262+
- name: "Download artifacts"
263+
uses: actions/download-artifact@v3
264+
with:
265+
name: dist
266+
267+
- name: "Sign artifacts"
268+
uses: sigstore/[email protected]
269+
with:
270+
inputs: coverage-*.*
271+
272+
- name: "List files"
273+
run: |
274+
ls -alR
275+
276+
- name: "Upload signatures"
277+
uses: actions/upload-artifact@v3
278+
with:
279+
name: signatures
280+
path: |
281+
*.crt
282+
*.sig
283+
*.sigstore
284+
retention-days: 7

0 commit comments

Comments
 (0)