Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e618d11

Browse files
authoredOct 19, 2024··
Update ci.yml
1 parent 3bdf410 commit e618d11

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎.github/workflows/ci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,16 @@ jobs:
102102
steps:
103103
- name: Install Cosign
104104
uses: sigstore/cosign-installer@v3.7.0
105+
- name: Write public key to disk
106+
run: 'echo "$KEY" > cosign.key'
107+
shell: bash
108+
env:
109+
KEY: ${{ secrets.COSIGN_PUBLIC_KEY }}
105110
- name: Check images
106111
run: |
107112
docker buildx imagetools inspect ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
108113
docker pull ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
109-
cosign verify --key env://COSIGN_KEY ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
114+
cosign verify --key cosign.key ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
110115
- uses: anchore/sbom-action@v0
111116
with:
112117
image: ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}

0 commit comments

Comments
 (0)
Please sign in to comment.