From 1216c9b96b9c5beaa43590ad7b3c689352266567 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 18dcb04..7c61176 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}}