From 3b7c9fc98ac0288d16c3b617f864e8240b179132 Mon Sep 17 00:00:00 2001 From: Barry d'Hoine Date: Wed, 11 Dec 2024 14:01:21 +0100 Subject: [PATCH] Fix reference to push output to enable attestation --- .github/workflows/build.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1162703..5f9250f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,7 +55,7 @@ jobs: with: images: ${{ env.registry }}/${{ github.repository }} - name: Build and push docker image - id: build-push-image + id: push uses: docker/build-push-action@v3 with: context: . @@ -66,13 +66,13 @@ jobs: build-args: | RUNMODE=${{ matrix.runmode }} PORT=${{ matrix.runmode == 'author' && '4502' || '4503' }} -# - name: Generate artifact attestation -# if: github.ref == 'refs/heads/main' -# uses: actions/attest-build-provenance@v1 -# with: -# subject-name: ${{ env.registry }}/${{ github.repository }} -# subject-digest: ${{ steps.push.outputs.digest }} -# push-to-registry: true + - name: Generate artifact attestation + if: github.ref == 'refs/heads/main' + uses: actions/attest-build-provenance@v1 + with: + subject-name: ${{ env.registry }}/${{ github.repository }} + subject-digest: ${{ steps.push.outputs.digest }} + push-to-registry: true manifest: name: Create manifest