From 1615aba16cbd2f8bba5fe997b540e48158af72a1 Mon Sep 17 00:00:00 2001 From: shreyasbhat0 Date: Tue, 16 Jul 2024 12:22:31 +0530 Subject: [PATCH] fix: try fix cosign --- .github/workflows/copybara-docker.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/copybara-docker.yml b/.github/workflows/copybara-docker.yml index 728e7fc..4b88aae 100644 --- a/.github/workflows/copybara-docker.yml +++ b/.github/workflows/copybara-docker.yml @@ -66,15 +66,10 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - - name: Get Docker image digest - id: digest - run: | - echo "DOCKER_IMAGE_DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' shreyasbhat0/copybara:$(echo ${{ steps.meta.outputs.tags }} | cut -d',' -f1))" >> $GITHUB_ENV - - name: Install Cosign uses: sigstore/cosign-installer@main - - name: Sign the image with GitHub OIDC **EXPERIMENTAL** - run: cosign sign --oidc-issuer https://token.actions.githubusercontent.com ${{ env.DOCKER_IMAGE_DIGEST }} + run: cosign sign --oidc-issuer https://token.actions.githubusercontent.com ${TAGS} env: - COSIGN_EXPERIMENTAL: 1 \ No newline at end of file + COSIGN_EXPERIMENTAL: 1 + TAGS: ${{ steps.meta.outputs.tags }} \ No newline at end of file