From 41bd06afd8e79b59fdf1b733e426f55c0da9ea28 Mon Sep 17 00:00:00 2001 From: hyperpolymath <6759885+hyperpolymath@users.noreply.github.com> Date: Thu, 25 Jun 2026 09:11:49 +0100 Subject: [PATCH] feat(ci): attest build provenance Add actions/attest-build-provenance (pinned @e8998f9 # v2) to the release job, attesting the same artifacts uploaded by softprops/action-gh-release. Grants id-token: write and attestations: write on that job. Attested paths: release/* Co-Authored-By: Claude Opus 4.8 --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9c735a..b99e54a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -143,6 +143,10 @@ jobs: needs: [build-linux, build-macos, build-windows, build-lsp] runs-on: ubuntu-latest timeout-minutes: 30 + permissions: + contents: write + id-token: write + attestations: write steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v4 @@ -164,3 +168,8 @@ jobs: generate_release_notes: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Attest build provenance + uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2 + with: + subject-path: 'release/*'