Skip to content

Commit

Permalink
Add Artifact Attestations (#151)
Browse files Browse the repository at this point in the history
This new feature from GitHub Actions is going to make more explicit that
no artifact was modified after the build.
  • Loading branch information
philss authored May 15, 2024
1 parent 4365ad3 commit 07be26c
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
@@ -1,5 +1,9 @@
name: Build precompiled NIFs

permissions:
id-token: write
attestations: write

on:
push:
branches:
Expand Down Expand Up @@ -66,6 +70,11 @@ jobs:
use-cross: ${{ matrix.job.use-cross }}
project-dir: "native/html5ever_nif"

- 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 07be26c

Please sign in to comment.