Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5e6e93

Browse files
CI: Add GitHub artifact attestations to package distribution
* Add generation of GitHub artifact attestations to built sdist and wheel before upload. c.f.: - https://github.blog/2024-05-02-introducing-artifact-attestations-now-in-public-beta/ - https://docs.github.com/en/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds
1 parent 5d1d64d commit a5e6e93

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ jobs:
189189
environment: release
190190
permissions:
191191
id-token: write
192+
attestations: write
193+
contents: read
192194
steps:
193195
- name: Download packages
194196
uses: actions/download-artifact@v4
@@ -200,5 +202,10 @@ jobs:
200202
- name: Print out packages
201203
run: ls dist
202204

205+
- name: Generate artifact attestation for sdist and wheel
206+
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
207+
with:
208+
subject-path: dist/matplotlib-*
209+
203210
- name: Publish package distributions to PyPI
204211
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14

0 commit comments

Comments
 (0)