Skip to content

Commit

Permalink
Add Artifact Attestations (#926)
Browse files Browse the repository at this point in the history
This is a new feature from GitHub Actions to store the attestation that
the artifact generated in the build was not modified later on.
  • Loading branch information
philss authored Jun 11, 2024
1 parent b48d4e4 commit e49af86
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ jobs:
build_release:
name: NIF ${{ matrix.nif }} - ${{ matrix.job.target }} (${{ matrix.job.os }} | ${{ matrix.job.variant || 'default' }})
runs-on: ${{ matrix.job.os }}

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

strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -85,6 +89,11 @@ jobs:
cargo-args: ${{ matrix.job.cargo-args }}
variant: ${{ matrix.job.variant }}

- name: Artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ steps.build-crate.outputs.file-path }}

- name: Artifact upload
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit e49af86

Please sign in to comment.