Skip to content

Commit f3dd93a

Browse files
[8.2.x] Attest package provenance (#12335)
Co-authored-by: Bruno Oliveira <[email protected]>
1 parent bb5a125 commit f3dd93a

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/deploy.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,21 @@ jobs:
1919
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.version }}
2020
timeout-minutes: 10
2121

22+
# Required by attest-build-provenance-github.
23+
permissions:
24+
id-token: write
25+
attestations: write
26+
2227
steps:
2328
- uses: actions/checkout@v4
2429
with:
2530
fetch-depth: 0
2631
persist-credentials: false
2732

2833
- name: Build and Check Package
29-
uses: hynek/[email protected]
34+
uses: hynek/[email protected]
35+
with:
36+
attest-build-provenance-github: 'true'
3037

3138
deploy:
3239
if: github.repository == 'pytest-dev/pytest'

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
fetch-depth: 0
3636
persist-credentials: false
3737
- name: Build and Check Package
38-
uses: hynek/build-and-inspect-python-package@v2.4.0
38+
uses: hynek/build-and-inspect-python-package@v2.5.0
3939

4040
build:
4141
needs: [package]

changelog/12333.trivial.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest releases are now attested using the recent `Artifact Attestation <https://github.blog/2024-05-02-introducing-artifact-attestations-now-in-public-beta/>` support from GitHub, allowing users to verify the provenance of pytest's sdist and wheel artifacts.

0 commit comments

Comments
 (0)