Skip to content

Commit

Permalink
feat: add support for attesting assets
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
  • Loading branch information
kbdharun committed May 30, 2024
1 parent b72a77e commit 1ba940e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
name: Build ${{ matrix.target }}
runs-on: ${{ matrix.os }}
needs: release
permissions:
contents: write # to upload assets to releases
attestations: write # to upload assets attestation for build provenance
id-token: write # grant additional permission to attestation action to mint the OIDC token permission

strategy:
fail-fast: false
Expand Down Expand Up @@ -84,3 +88,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload "$GITHUB_REF_NAME" "$NAME"-*

- name: Attest release files
id: attest
uses: actions/attest-build-provenance@v1
with:
subject-path: '*.zip, *.tar.gz'

0 comments on commit 1ba940e

Please sign in to comment.