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: |