Skip to content

Commit 8fc42d1

Browse files
committed
fix: stupid chris forgot to give id-token perms
- cosign wasn't working because the github_token didn't have the permissions to write to the id-token. silly me! Signed-off-by: ChrisJBurns <[email protected]>
1 parent ba7083b commit 8fc42d1

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/image-build-and-publish.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
permissions:
1313
contents: write
1414
packages: write
15+
id-token: write
16+
1517
env:
1618
BASE_REPO: "ghcr.io/stacklok/vibetool"
1719

@@ -62,14 +64,4 @@ jobs:
6264
run: |
6365
TAG=$(echo "${{ steps.version-string.outputs.tag }}" | sed 's/+/_/g')
6466
# Sign the ko image
65-
# cosign sign -y $BASE_REPO:$TAG
66-
cosign version
67-
echo "${BASE_REPO}:${TAG}" | xargs -I {} cosign sign --yes {}
68-
69-
# - name: Sign the published Docker image
70-
# env:
71-
# TAGS: ${{ steps.meta.outputs.tags }}
72-
# DIGEST: ${{ steps.build-and-push.outputs.digest }}
73-
# run: |
74-
# cosign version
75-
# echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
67+
cosign sign -y $BASE_REPO:$TAG

0 commit comments

Comments
 (0)