Skip to content

Commit 19e1b8a

Browse files
authored
chore: attestations (#1916)
1 parent 73581ae commit 19e1b8a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ jobs:
2828
needs: [dist]
2929
runs-on: ubuntu-latest
3030
if: github.event_name == 'release' && github.event.action == 'published'
31-
environment: pypi
31+
environment:
32+
name: pypi
33+
url: https://pypi.org/p/cibuildwheel
3234
permissions:
3335
id-token: write
36+
attestations: write
3437

3538
steps:
3639
- uses: actions/download-artifact@v4
@@ -39,4 +42,9 @@ jobs:
3942
path: dist
4043
merge-multiple: true
4144

45+
- name: Generate artifact attestation for sdist and wheel
46+
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
47+
with:
48+
subject-path: "dist/cibuildwheel-*"
49+
4250
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)