Skip to content
Myr

fix(build): Fix attestation

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

Use the right output in the github action. Also pin the versions of the upload-artifact and attest actions.

authored by Thayne McCombs · committed by Thayne McCombs · parent ff1f66c · Browse files · 1 file+5 added−5 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+5 added−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:.github/workflows/CICD.yml+5 added-5 removed
253 unmodified lines
254 BIN_PATH: ${{ steps.bin.outputs.BIN_PATH }}255256 - name: "Artifact upload: tarball"257 id: upload-tarball258 uses: actions/upload-artifact@master258 uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7259 with:260 name: ${{ steps.package.outputs.PKG_NAME }}261 path: ${{ steps.package.outputs.PKG_PATH }}262263 - name: "Artifact upload: Debian package"264 id: upload-deb265 uses: actions/upload-artifact@master265 uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7266 if: steps.debian-package.outputs.DPKG_NAME267 with:268 name: ${{ steps.debian-package.outputs.DPKG_NAME }}269 path: ${{ steps.debian-package.outputs.DPKG_PATH }}
5 unmodified lines
275 unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi276 echo "IS_RELEASE=${IS_RELEASE}" >> $GITHUB_OUTPUT277278 - name: "Attest artifact: tarball"279 uses: actions/attest-build-provenance@v4279 uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4280 if: steps.is-release.outputs.IS_RELEASE281 with:282 subject-name: ${{ steps.package.outputs.PKG_NAME }}283 subject-digest: sha256::${{ steps.upload-tarball.artifact-digest }}283 subject-digest: sha256::${{ steps.upload-tarball.outputs.artifact-digest }}284285 - name: "Attest artifact: Debian package"286 uses: actions/attest-build-provenance@v4286 uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4287 if: 'steps.is-release.outputs.IS_RELEASE && steps.debian-package.outputs.DPKG_NAME'288 with:289 subject-name: ${{ steps.debian-package.outputs.DPKG_NAME }}290 subject-digest: sha256::${{ steps.upload-deb.outputs.artifact-digest }}
22 unmodified lines