From 1474c8134255d7a92544a2847eadd4924bbb39d1 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:51:20 +0300 Subject: [PATCH] Attest build provenance of artifacts --- .github/workflows/deploy.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 932fa6b..d5abdb8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,6 +14,9 @@ on: permissions: contents: read +env: + FORCE_COLOR: 1 + jobs: # Always build & lint package. build-package: @@ -38,6 +41,7 @@ jobs: needs: build-package permissions: + attestations: write id-token: write steps: @@ -47,6 +51,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 +71,7 @@ jobs: needs: build-package permissions: + attestations: write id-token: write steps: @@ -71,5 +81,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