From 41ceee016a063642b20de007210b9eeb060e5fb7 Mon Sep 17 00:00:00 2001 From: studio-prisma <282898618+studio-prisma@users.noreply.github.com> Date: Mon, 26 Oct 2026 18:15:45 +0100 Subject: [PATCH] ci(release): attest build provenance of the release package Each package gets a signed provenance attestation; gh attestation verify checks that it was built by this workflow from the tagged commit. --- .github/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1ca636..a43eb85 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,6 +13,8 @@ on: permissions: contents: write + id-token: write # build-provenance attestation + attestations: write jobs: release: @@ -66,6 +68,14 @@ jobs: bash ./tools/build-zip.sh "$VERSION" echo "asset=dist/trello-sync-${VERSION}.zip" >> "$GITHUB_OUTPUT" + + # Signed statement that this file was built by this workflow from this + # commit. Check a downloaded package with: + # gh attestation verify --repo ${{ github.repository }} + - name: Attest build provenance + uses: actions/attest-build-provenance@v4 + with: + subject-path: ${{ steps.build.outputs.asset }} - name: Extract CHANGELOG section for this version id: changelog run: |