Skip to content

Commit 27a3c94

Browse files
committed
🔏🧪 Sign released artifacts @ CI/CD w/ Sigstore
1 parent b2af5ef commit 27a3c94

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,6 +1348,7 @@ jobs:
13481348
permissions:
13491349
contents: write
13501350
discussions: write
1351+
id-token: write # IMPORTANT: mandatory for Sigstore signing
13511352

13521353
steps:
13531354
- name: Download all the dists
@@ -1423,16 +1424,28 @@ jobs:
14231424
}}' | tee -a release-notes.md
14241425
shell: bash
14251426

1427+
- name: Sign the dists with Sigstore
1428+
uses: sigstore/gh-action-sigstore-python@v2.1.1
1429+
with:
1430+
inputs: >-
1431+
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}
1432+
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}
1433+
14261434
- name: >-
14271435
Publish a GitHub Release for
14281436
${{ needs.pre-setup.outputs.git-tag }}
1437+
with Sigstore-signed artifacts
14291438
uses: ncipollo/release-action@v1
14301439
with:
14311440
allowUpdates: false
14321441
artifactErrorsFailBuild: false
14331442
artifacts: |
14341443
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}
1444+
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}.crt
1445+
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}.sig
14351446
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}
1447+
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}.crt
1448+
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}.sig
14361449
artifactContentType: raw # Because whl and tgz are of different types
14371450
bodyFile: release-notes.md
14381451
discussionCategory: Announcements

0 commit comments

Comments
 (0)