Skip to content

Commit

Permalink
test release
Browse files Browse the repository at this point in the history
  • Loading branch information
fqjony committed Dec 5, 2024
1 parent 61eb0ed commit cd44960
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,20 @@ jobs:
- name: Sign Docker Image with Cosign
env:
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
IMAGE_DIGEST: ${{ env.IMAGE_DIGEST }}
run: |
# Ensure signing targets the digest, not the tag
cosign sign -y \
--key env://COSIGN_PRIVATE_KEY \
usabilitydynamics/udx-worker@${IMAGE_DIGEST}
"usabilitydynamics/udx-worker@${IMAGE_DIGEST}"
- name: Verify Cosign Signature
env:
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
run: |
cosign verify \
usabilitydynamics/udx-worker@${IMAGE_DIGEST}
cosign verify -y \
--key env://COSIGN_PRIVATE_KEY \
"usabilitydynamics/udx-worker@${IMAGE_DIGEST}"
- name: Install Trivy
run: |
Expand Down

0 comments on commit cd44960

Please sign in to comment.