Skip to content

Commit

Permalink
Add build attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Jun 18, 2024
1 parent db46b79 commit 9d1f3d7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
name: cargo build
runs-on: ${{ matrix.os }}

permissions:
id-token: write
contents: read
attestations: write

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -39,6 +44,11 @@ jobs:

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

- name: Attest
uses: actions/attest-build-provenance@v1
with:
subject-path: '${{ github.workspace }}/${{ matrix.bin }}'

- if: matrix.os == 'windows-latest'
run: |
7z a "${{ matrix.target}}.${{ matrix.suffix }}" ${{ matrix.bin }}
Expand Down

0 comments on commit 9d1f3d7

Please sign in to comment.