Skip to content

Commit 50f5520

Browse files
committed
Attest build provenance
1 parent 9dc5424 commit 50f5520

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
needs: build-package
3939

4040
permissions:
41+
attestations: write
4142
id-token: write
4243

4344
steps:
@@ -47,6 +48,11 @@ jobs:
4748
name: Packages
4849
path: dist
4950

51+
- name: Attest build provenance
52+
uses: actions/attest-build-provenance@v1
53+
with:
54+
subject-path: "dist/*"
55+
5056
- name: Upload package to Test PyPI
5157
uses: pypa/gh-action-pypi-publish@release/v1
5258
with:
@@ -62,6 +68,7 @@ jobs:
6268
needs: build-package
6369

6470
permissions:
71+
attestations: write
6572
id-token: write
6673

6774
steps:
@@ -71,5 +78,10 @@ jobs:
7178
name: Packages
7279
path: dist
7380

81+
- name: Attest build provenance
82+
uses: actions/attest-build-provenance@v1
83+
with:
84+
subject-path: "dist/*"
85+
7486
- name: Upload package to PyPI
7587
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)