Skip to content
Myr

ci: attest build provenance for release archives

Before adoption: this commit came in with the history the project adopted, so no landing records it.

PR #3495

authored by Kobi Hikri · committed by GitHub · parent f9c05a9 · Browse files · 1 file+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−0 removed

  • other:+7 added−0 removed

1 file+7 added−0 removed

modified:.github/workflows/release.yml+7 added
7 unmodified lines
89# We need this to be able to create releases.10permissions:11 contents: write12 id-token: write # for build provenance signing13 attestations: write # to record the attestation1415jobs:16 # The create-release job runs purely to initialize the GitHub release itself,17 # and names the release after the `x.y.z` tag that was pushed. It's separate
265 unmodified lines
283 shasum -a 256 "$ARCHIVE.tar.gz" > "$ARCHIVE.tar.gz.sha256"284 echo "ASSET=$ARCHIVE.tar.gz" >> $GITHUB_ENV285 echo "ASSET_SUM=$ARCHIVE.tar.gz.sha256" >> $GITHUB_ENV286287 - name: Attest build provenance288 uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0289 with:290 subject-path: ${{ env.ASSET }}291292 - name: Upload release archive293 env:294 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}295 shell: bash
91 unmodified lines