Skip to content

Commit 9d1f3d7

Browse files
committed
Add build attestation
1 parent db46b79 commit 9d1f3d7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
name: cargo build
2626
runs-on: ${{ matrix.os }}
2727

28+
permissions:
29+
id-token: write
30+
contents: read
31+
attestations: write
32+
2833
steps:
2934
- uses: actions/checkout@v4
3035
- uses: dtolnay/rust-toolchain@stable
@@ -39,6 +44,11 @@ jobs:
3944

4045
- run: cp target/${{ matrix.target }}/release/${{ matrix.bin }} ${{ matrix.bin }}
4146

47+
- name: Attest
48+
uses: actions/attest-build-provenance@v1
49+
with:
50+
subject-path: '${{ github.workspace }}/${{ matrix.bin }}'
51+
4252
- if: matrix.os == 'windows-latest'
4353
run: |
4454
7z a "${{ matrix.target}}.${{ matrix.suffix }}" ${{ matrix.bin }}

0 commit comments

Comments
 (0)