Skip to content

Commit

Permalink
fix: image signing
Browse files Browse the repository at this point in the history
Signed-off-by: Bence Csati <[email protected]>
  • Loading branch information
csatib02 committed Sep 2, 2024
1 parent 8d0659d commit 94ba91c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ on:
default: false
type: boolean

permissions:
contents: read
packages: write

jobs:
container-image:
name: Container-Image
Expand Down Expand Up @@ -90,7 +86,7 @@ jobs:
for tag in ${TAGS}; do
images+="${tag}@${DIGEST} "
done
cosign sign --yes --key $COSIGN_PRIVATE_KEY --password-stdin $images <<< $COSIGN_PASSWORD
cosign sign --yes --key ${{ secrets.COSIGN_KEY }} $images
- name: Upload image artifact
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
with:
publish: true
permissions:
contents: read
contents: write
packages: write

0 comments on commit 94ba91c

Please sign in to comment.