Skip to content

Commit a541e8f

Browse files
hyperpolymathclaude
andcommitted
feat(ci): attest build provenance
Add GitHub-native build-provenance attestation (actions/attest-build-provenance@v2, SHA-pinned) to the release workflow. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent f90d57b commit a541e8f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ jobs:
5252
fi
5353
build:
5454
needs: prepare
55+
permissions:
56+
contents: write
57+
id-token: write
58+
attestations: write
5559
strategy:
5660
fail-fast: false
5761
matrix:
@@ -98,6 +102,10 @@ jobs:
98102
run: |
99103
install -m 0755 _build/default/bin/main.exe \
100104
"affinescript-${{ matrix.target }}"
105+
- name: Attest build provenance
106+
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2
107+
with:
108+
subject-path: 'affinescript-${{ matrix.target }}'
101109
- name: Upload the binary to the release
102110
env:
103111
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)