From 15878b669b132f057abef1ca925d30b1b6659f17 Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Tue, 1 Oct 2024 15:10:45 +0000 Subject: [PATCH] Fix the cosign step to authenticate with the container registry Change-Id: I8b5fd63128b7c661c438c9cff9e8a4a3e487712b Signed-off-by: Cosmin Cojocar --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18dcb04171..7c611768d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,7 +69,7 @@ jobs: push: true build-args: GO_VERSION=1.23 - name: Sign Docker Image - run: cosign sign --yes --key /tmp/cosign.key ${DIGEST} + run: cosign sign --yes --key /tmp/cosign.key ${DIGEST} --registry-username="$secrets.DOCKER_USERNAME" --registry-password="::add-mask::$secrets.DOCKER_PASSWORD" env: TAGS: ${{steps.meta.outputs.tags}} COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}