Skip to content

Commit 1216c9b

Browse files
committed
Fix the cosign step to authenticate with the container registry
Change-Id: I8b5fd63128b7c661c438c9cff9e8a4a3e487712b Signed-off-by: Cosmin Cojocar <[email protected]>
1 parent 50d1b4a commit 1216c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
push: true
7070
build-args: GO_VERSION=1.23
7171
- name: Sign Docker Image
72-
run: cosign sign --yes --key /tmp/cosign.key ${DIGEST}
72+
run: cosign sign --yes --key /tmp/cosign.key ${DIGEST} --registry-username="$secrets.DOCKER_USERNAME" --registry-password="::add-mask::$secrets.DOCKER_PASSWORD"
7373
env:
7474
TAGS: ${{steps.meta.outputs.tags}}
7575
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}

0 commit comments

Comments
 (0)