Skip to content

Commit 0ec3b69

Browse files
committed
Added an attestation for standard (latest) builds.
1 parent d8af38d commit 0ec3b69

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@ jobs:
2525
name: Node.js ${{matrix.node-version}} on ${{matrix.os}}
2626
needs: create-release
2727
runs-on: ${{matrix.os}}
28-
2928
strategy:
3029
matrix:
3130
os: [macos-latest, windows-latest, macos-13, windows-11-arm]
3231
node-version: [20, 22, 23, 24]
3332

33+
permissions:
34+
id-token: write
35+
contents: read
36+
attestations: write
37+
3438
steps:
3539
- uses: actions/checkout@v4
3640
with:
@@ -50,6 +54,10 @@ jobs:
5054
env:
5155
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
5256
run: npm run save-to-github
57+
- name: Attest
58+
uses: actions/attest-build-provenance@v2
59+
with:
60+
subject-path: '${{ github.workspace }}/build/Release/re2.node'
5361

5462
build-linux-node-20:
5563
name: Node.js 20 on Bullseye

0 commit comments

Comments
 (0)