Skip to content

Commit

Permalink
Attest build provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed May 2, 2024
1 parent 9dc5424 commit 50f5520
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
needs: build-package

permissions:
attestations: write
id-token: write

steps:
Expand All @@ -47,6 +48,11 @@ jobs:
name: Packages
path: dist

- name: Attest build provenance
uses: actions/attest-build-provenance@v1
with:
subject-path: "dist/*"

- name: Upload package to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand All @@ -62,6 +68,7 @@ jobs:
needs: build-package

permissions:
attestations: write
id-token: write

steps:
Expand All @@ -71,5 +78,10 @@ jobs:
name: Packages
path: dist

- name: Attest build provenance
uses: actions/attest-build-provenance@v1
with:
subject-path: "dist/*"

- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 50f5520

Please sign in to comment.