Skip to content

Commit 2339216

Browse files
committed
fix(ci): update cosign sign command to include registry credentials
1 parent fbdc056 commit 2339216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/sematic-releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
for tag in ${TAGS}; do
116116
images+="${tag}@${DIGEST} "
117117
done
118-
cosign sign --yes --key env://COSIGN_PRIVATE_KEY ${images}
118+
cosign sign --yes --registry-username='${{ secrets.HARBOR_USERNAME }}' --registry-password='${{ secrets.HARBOR_PASSWORD }}' --key env://COSIGN_PRIVATE_KEY ${images}
119119
env:
120120
TAGS: ${{ steps.meta.outputs.tags }}
121121
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_KEY }}

0 commit comments

Comments
 (0)