Skip to content

Commit 986988a

Browse files
committed
🔏🧪 Sign the released dists with Sigstore
The signatures are uploaded to GitHub Releases.
1 parent cd0885e commit 986988a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci-cd.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,6 +1651,7 @@ jobs:
16511651
permissions:
16521652
contents: write
16531653
discussions: write
1654+
id-token: write # IMPORTANT: mandatory for Sigstore signing
16541655

16551656
steps:
16561657
- name: Download all the dists
@@ -1659,16 +1660,28 @@ jobs:
16591660
name: ${{ needs.pre-setup.outputs.dists-artifact-name }}
16601661
path: dist/
16611662

1663+
- name: Sign the dists with Sigstore
1664+
uses: sigstore/gh-action-sigstore-python@v1.2.3
1665+
with:
1666+
inputs: >-
1667+
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}
1668+
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}
1669+
16621670
- name: >-
16631671
Publish a GitHub Release for
16641672
${{ needs.pre-setup.outputs.git-tag }}
1673+
with Sigstore-signed artifacts
16651674
uses: ncipollo/release-action@v1.13.0
16661675
with:
16671676
allowUpdates: false
16681677
artifactErrorsFailBuild: false
16691678
artifacts: |
16701679
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}
1680+
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}.crt
1681+
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}.sig
16711682
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}
1683+
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}.crt
1684+
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}.sig
16721685
artifactContentType: raw # Because whl and tgz are of different types
16731686
body: >
16741687
# Release ${{ needs.pre-setup.outputs.git-tag }}

0 commit comments

Comments
 (0)