File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,16 @@ jobs:
102102 steps :
103103 - name : Install Cosign
104104105+ - 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 }}
You can’t perform that action at this time.
0 commit comments