ci: attest build provenance for release archives

PR #3495
This commit is contained in:
Kobi Hikri
2026-07-28 18:57:17 -04:00
committed by GitHub
parent f9c05a949d
commit dffd776a73
+7
View File
@@ -9,6 +9,8 @@ on:
# We need this to be able to create releases.
permissions:
contents: write
id-token: write # for build provenance signing
attestations: write # to record the attestation
jobs:
# The create-release job runs purely to initialize the GitHub release itself,
@@ -282,6 +284,11 @@ jobs:
echo "ASSET=$ARCHIVE.tar.gz" >> $GITHUB_ENV
echo "ASSET_SUM=$ARCHIVE.tar.gz.sha256" >> $GITHUB_ENV
- name: Attest build provenance
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
with:
subject-path: ${{ env.ASSET }}
- name: Upload release archive
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}