Skip to content

Commit ea7977c

Browse files
committed
fix: cosign permissions in ci
1 parent 5d5a3a5 commit ea7977c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/reusable-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ jobs:
228228
- name: Sign container image
229229
if: github.event_name != 'pull_request'
230230
run: |
231-
cosign sign -y --key env://COSIGN_PRIVATE_KEY ${IMAGE_REGISTRY}/${IMAGE_NAME}@${TAGS}
231+
sudo -E cosign sign -y --key env://COSIGN_PRIVATE_KEY ${IMAGE_REGISTRY}/${IMAGE_NAME}@${TAGS}
232232
env:
233233
TAGS: ${{ steps.push.outputs.outputs && fromJSON(steps.push.outputs.outputs).digest }}
234234
COSIGN_EXPERIMENTAL: false

0 commit comments

Comments
 (0)