Skip to content

Commit

Permalink
chore: attestations (#1916)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Jul 2, 2024
1 parent 73581ae commit 19e1b8a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ jobs:
needs: [dist]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
environment: pypi
environment:
name: pypi
url: https://pypi.org/p/cibuildwheel
permissions:
id-token: write
attestations: write

steps:
- uses: actions/download-artifact@v4
Expand All @@ -39,4 +42,9 @@ jobs:
path: dist
merge-multiple: true

- name: Generate artifact attestation for sdist and wheel
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
with:
subject-path: "dist/cibuildwheel-*"

- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 19e1b8a

Please sign in to comment.