Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Gonzalez V <[email protected]>
  • Loading branch information
sxd committed Jan 20, 2025
1 parent d1989b0 commit 49e0c14
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/bake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
contents: read
packages: write
security-events: write
id-token: read
outputs:
metadata: ${{ steps.build.outputs.metadata }}
images: ${{ steps.images.outputs.images }}
Expand Down Expand Up @@ -73,13 +74,10 @@ jobs:
- name: Check Cosign install
run: cosign version
- name: Sign images using Cosing
env:
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
run: |
images=""
images=$(echo '${{ steps.build.outputs.metadata }}' | jq -r '.[] | "\(.["image.name"]) \(.["containerimage.digest"])"' | awk -F' ' '{split($1, a, ","); for(i in a) print a[i] "@" $2}' | tr '\n' ' ')
cosign sign --yes --key env://COSIGN_PRIVATE_KEY ${images}
cosign sign --yes ${images}
security:
name: Security checks
Expand Down

0 comments on commit 49e0c14

Please sign in to comment.