From 3616862bbf8903c586825659534da12cfcf0ec73 Mon Sep 17 00:00:00 2001 From: Kornilios Kourtis Date: Tue, 28 Nov 2023 07:53:27 +0100 Subject: [PATCH] gh: use cosign sign -y [ upstream commit 20bd368b10d1614140ec5237b7600e0d9aaf7eb7 ] Signed-off-by: Kornilios Kourtis --- .github/workflows/build-clang-image.yaml | 4 ++-- .github/workflows/build-images-ci.yml | 8 ++++---- .github/workflows/build-images-releases.yml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-clang-image.yaml b/.github/workflows/build-clang-image.yaml index e64a7ace97b..5b508a190d9 100644 --- a/.github/workflows/build-clang-image.yaml +++ b/.github/workflows/build-clang-image.yaml @@ -80,7 +80,7 @@ jobs: env: COSIGN_EXPERIMENTAL: "true" run: | - cosign sign quay.io/${{ github.repository_owner }}/clang@${{ steps.docker_build_release.outputs.digest }} + cosign sign -y quay.io/${{ github.repository_owner }}/clang@${{ steps.docker_build_release.outputs.digest }} - name: Install Bom if: github.event_name == 'push' @@ -112,7 +112,7 @@ jobs: docker_build_release_digest="${{ steps.docker_build_release.outputs.digest }}" image_name="quay.io/${{ github.repository_owner }}/clang:${docker_build_release_digest/:/-}.sbom" docker_build_release_sbom_digest="sha256:$(docker buildx imagetools inspect --raw ${image_name} | sha256sum | head -c 64)" - cosign sign "quay.io/${{ github.repository_owner }}/clang@${docker_build_release_sbom_digest}" + cosign sign -y "quay.io/${{ github.repository_owner }}/clang@${docker_build_release_sbom_digest}" - name: Image Release Digest if: github.event_name == 'push' diff --git a/.github/workflows/build-images-ci.yml b/.github/workflows/build-images-ci.yml index 0975bb92e1f..48ea21b5e6b 100644 --- a/.github/workflows/build-images-ci.yml +++ b/.github/workflows/build-images-ci.yml @@ -102,7 +102,7 @@ jobs: env: COSIGN_EXPERIMENTAL: "true" run: | - cosign sign quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci@${{ steps.docker_build_ci_main.outputs.digest }} + cosign sign -y quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci@${{ steps.docker_build_ci_main.outputs.digest }} - name: Generate SBOM if: github.event_name == 'push' @@ -126,7 +126,7 @@ jobs: docker_build_ci_main_digest="${{ steps.docker_build_ci_main.outputs.digest }}" image_name="quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci:${docker_build_ci_main_digest/:/-}.sbom" docker_build_ci_main_sbom_digest="sha256:$(docker buildx imagetools inspect --raw ${image_name} | sha256sum | head -c 64)" - cosign sign "quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci@${docker_build_ci_main_sbom_digest}" + cosign sign -y "quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci@${docker_build_ci_main_sbom_digest}" - name: CI Image Releases digests (main) if: github.event_name == 'push' @@ -156,7 +156,7 @@ jobs: env: COSIGN_EXPERIMENTAL: "true" run: | - cosign sign quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci@${{ steps.docker_build_ci_pr.outputs.digest }} + cosign sign -y quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci@${{ steps.docker_build_ci_pr.outputs.digest }} - name: Generate SBOM if: github.event_name == 'pull_request_target' || github.event_name == 'pull_request' @@ -180,7 +180,7 @@ jobs: docker_build_ci_pr_digest="${{ steps.docker_build_ci_pr.outputs.digest }}" image_name="quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci:${docker_build_ci_pr_digest/:/-}.sbom" docker_build_ci_pr_sbom_digest="sha256:$(docker buildx imagetools inspect --raw ${image_name} | sha256sum | head -c 64)" - cosign sign "quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci@${docker_build_ci_pr_sbom_digest}" + cosign sign -y "quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci@${docker_build_ci_pr_sbom_digest}" - name: CI Image Releases digests (PR) if: github.event_name == 'pull_request_target' || github.event_name == 'pull_request' diff --git a/.github/workflows/build-images-releases.yml b/.github/workflows/build-images-releases.yml index 112e1137465..cbb216af3f9 100644 --- a/.github/workflows/build-images-releases.yml +++ b/.github/workflows/build-images-releases.yml @@ -84,8 +84,8 @@ jobs: env: COSIGN_EXPERIMENTAL: "true" run: | - cosign sign quay.io/${{ github.repository_owner }}/${{ matrix.name }}@${{ steps.docker_build_release.outputs.digest }} - cosign sign quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci@${{ steps.docker_build_release.outputs.digest }} + cosign sign -y quay.io/${{ github.repository_owner }}/${{ matrix.name }}@${{ steps.docker_build_release.outputs.digest }} + cosign sign -y quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci@${{ steps.docker_build_release.outputs.digest }} - name: Install Bom if: ${{ startsWith(steps.tag.outputs.tag, 'v') }}