From 32fc86fc49cc76ce36dceefaf131445d7909cb68 Mon Sep 17 00:00:00 2001 From: Matthew DeVenny Date: Thu, 12 Dec 2024 13:41:39 -0700 Subject: [PATCH] Enable attestations Signed-off-by: Matthew DeVenny --- .github/workflows/main.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 8dddc55..3a41d1e 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -74,6 +74,7 @@ jobs: fi - uses: actions/attest-build-provenance@v2 + if: ${{ env.PUBLISH == 'yes' }} with: subject-path: 'release/**/dockcmd*' @@ -125,6 +126,7 @@ jobs: ghcr.io/boxboat/dockcmd:${{ env.CI_VERSION }} - name: Attest ghcr image + if: ${{ env.PUBLISH == 'yes' }} uses: actions/attest-build-provenance@v2 with: subject-name: ghcr.io/boxboat/dockcmd:${{ env.CI_VERSION }} @@ -132,6 +134,7 @@ jobs: push-to-registry: true - name: Attest hub image + if: ${{ env.PUBLISH == 'yes' }} uses: actions/attest-build-provenance@v2 with: subject-name: boxboat/dockcmd:${{ env.CI_VERSION }}