Skip to content

Commit

Permalink
add attestation bundle to release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
finnigja committed May 3, 2024
1 parent 678ca5c commit f7fcb48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-attested-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ jobs:
tar cvf ${{ env.PRODUCT_NAME }}-${{ env.RELEASE_VERSION }}.tar ${{ env.PRODUCT_NAME }}-*
gzip ${{ env.PRODUCT_NAME }}-${{ env.RELEASE_VERSION }}.tar
- name: Create attestation
id: create-attestation
uses: actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0
with:
subject-path: "${{ env.PRODUCT_NAME }}-${{ env.RELEASE_VERSION }}.tar.gz"
- name: Create release with attested artifact attached
uses: ncipollo/release-action@v1
with:
tag: "${{ env.RELEASE_VERSION }}"
artifacts: "${{ env.PRODUCT_NAME }}-${{ env.RELEASE_VERSION }}.tar.gz"
artifacts: "${{ env.PRODUCT_NAME }}-${{ env.RELEASE_VERSION }}.tar.gz, ${{ steps.create-attestation.outputs.bundle-path }}"
body: "${{ env.PRODUCT_NAME }} release ${{ env.RELEASE_VERSION }}"
makeLatest: true

0 comments on commit f7fcb48

Please sign in to comment.