Skip to content

Commit

Permalink
Update cosign configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ksclarke committed Oct 30, 2024
1 parent 64e4e80 commit 369863d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,16 @@ jobs:
curl -sSfL ${{ env.COSIGN_URL }}/${{ matrix.cosign }}/cosign-linux-amd64 -o /usr/local/bin/cosign
chmod +x /usr/local/bin/cosign
- name: Write Cosign Private Key to File
run: |
echo "${{ secrets.COSIGN_PRIVATE_KEY }}" > $RUNNER_TEMP/cosign.key
chmod 600 $RUNNER_TEMP/cosign.key
- name: Sign Docker image with Cosign
env:
COSIGN_EXPERIMENTAL: "true"
run: |
cosign sign --key ${{ secrets.COSIGN_PRIVATE_KEY }} \
cosign sign --key $RUNNER_TEMP/cosign.key \
${{ secrets.DOCKER_ACCOUNT }}/${{ env.ARTIFACT_NAME }}:${{ env.RELEASE_VERSION }}
- name: Attest Docker image with Cosign
Expand Down

0 comments on commit 369863d

Please sign in to comment.