From e1478a4691a6bb59f9b4a744a59bc20c6582d2fd Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Sat, 1 Jun 2024 12:13:41 +0300 Subject: [PATCH] Attest build provenance --- .github/workflows/deploy.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 932fa6b..5d3589c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -38,6 +38,7 @@ jobs: needs: build-package permissions: + attestations: write id-token: write steps: @@ -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: @@ -62,6 +68,7 @@ jobs: needs: build-package permissions: + attestations: write id-token: write steps: @@ -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