Skip to content

Commit 66f64e8

Browse files
authored
Attest build provenance of artifacts (#81)
2 parents ab26d60 + f637470 commit 66f64e8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/deploy.yml

+15
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
permissions:
1515
contents: read
1616

17+
env:
18+
FORCE_COLOR: 1
19+
1720
jobs:
1821
# Always build & lint package.
1922
build-package:
@@ -38,6 +41,7 @@ jobs:
3841
needs: build-package
3942

4043
permissions:
44+
attestations: write
4145
id-token: write
4246

4347
steps:
@@ -47,6 +51,11 @@ jobs:
4751
name: Packages
4852
path: dist
4953

54+
- name: Attest build provenance
55+
uses: actions/attest-build-provenance@v1
56+
with:
57+
subject-path: "dist/*"
58+
5059
- name: Upload package to Test PyPI
5160
uses: pypa/gh-action-pypi-publish@release/v1
5261
with:
@@ -62,6 +71,7 @@ jobs:
6271
needs: build-package
6372

6473
permissions:
74+
attestations: write
6575
id-token: write
6676

6777
steps:
@@ -71,5 +81,10 @@ jobs:
7181
name: Packages
7282
path: dist
7383

84+
- name: Attest build provenance
85+
uses: actions/attest-build-provenance@v1
86+
with:
87+
subject-path: "dist/*"
88+
7489
- name: Upload package to PyPI
7590
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)