Skip to content
Myr

feat[release]: Add attestation for release artifacts

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

authored by Thayne McCombs · committed by Thayne McCombs · parent 8c9c6be · Browse files · 1 file+21 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+21 added−0 removed

  • other:+21 added−0 removed

1 file+21 added−0 removed

modified:.github/workflows/CICD.yml+21 added
11 unmodified lines
12 - master13 tags:14 - '*'1516permissions:17 id-token: write18 contents: write19 attestations: write2021jobs:22 crate_metadata:23 name: Extract crate metadata24 runs-on: ubuntu-latest
202 unmodified lines
227 DPKG_VERSION: ${{ needs.crate_metadata.version }}228 BIN_PATH: ${{ steps.bin.outputs.BIN_PATH }}229230 - name: "Artifact upload: tarball"231 id: upload-tarball232 uses: actions/upload-artifact@master233 with:234 name: ${{ steps.package.outputs.PKG_NAME }}235 path: ${{ steps.package.outputs.PKG_PATH }}236237 - name: "Artifact upload: Debian package"238 id: upload-deb239 uses: actions/upload-artifact@master240 if: steps.debian-package.outputs.DPKG_NAME241 with:242 name: ${{ steps.debian-package.outputs.DPKG_NAME }}
5 unmodified lines
248 run: |249 unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi250 echo "IS_RELEASE=${IS_RELEASE}" >> $GITHUB_OUTPUT251252 - name: "Attest artifact: tarball"253 uses: actions/attest-build-provenance@v3254 if: steps.is-release.outputs.IS_RELEASE255 with:256 subject-name: ${{ steps.package.outputs.PKG_NAME }}257 subject-digest: sha256::${{ steps.upload-tarball.artifact-digest }}258259 - name: "Attest artifact: Debian package"260 uses: actions/attest-build-provenance@v3261 if: 'steps.is-release.outputs.IS_RELEASE && steps.debian-package.outputs.DPKG_NAME'262 with:263 subject-name: ${{ steps.debian-package.outputs.DPKG_NAME }}264 subject-digest: sha256::${{ steps.upload-deb.outputs.artifact-digest }}265266 - name: Publish archives and packages267 uses: softprops/action-gh-release@v2268 if: steps.is-release.outputs.IS_RELEASE269 with:
17 unmodified lines