Skip to content

Commit

Permalink
generate provenance attestation
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof committed May 7, 2024
1 parent 591d9eb commit ad8dbd5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:

permissions:
contents: read # to fetch code (actions/checkout)
id-token: write
attestations: write

jobs:
prepare:
Expand Down Expand Up @@ -250,9 +252,6 @@ jobs:
files: ./coverage.txt

release:
permissions:
contents: write # to create a release (ncipollo/release-action)

runs-on: ubuntu-latest
needs:
- binary
Expand Down Expand Up @@ -285,6 +284,11 @@ jobs:
name: Check artifacts
run: |
find bin/release -type f -exec file -e ascii -- {} +
-
name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./bin/release/*
-
name: GitHub Release
if: startsWith(github.ref, 'refs/tags/v')
Expand Down

0 comments on commit ad8dbd5

Please sign in to comment.