Skip to content

Commit e747875

Browse files
authored
Merge pull request #30 from kpumuk/fix/release-provenance-bundle
Attach release provenance bundles
2 parents abbabfc + 9a9fef8 commit e747875

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ jobs:
5353
AUR_KEY: ${{ secrets.AUR_KEY }}
5454
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
5555
- name: Generate release artifact attestation
56+
id: attest
5657
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
5758
with:
5859
subject-checksums: dist/checksums.txt
60+
- name: Upload release provenance bundle
61+
env:
62+
ATTESTATION_BUNDLE: ${{ steps.attest.outputs.bundle-path }}
63+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
run: |
65+
set -euo pipefail
66+
jq -c . "$ATTESTATION_BUNDLE" > dist/checksums.txt.intoto.jsonl
67+
gh release upload "${GITHUB_REF_NAME}" dist/checksums.txt.intoto.jsonl --clobber

0 commit comments

Comments
 (0)