File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,16 @@ jobs:
102
102
steps :
103
103
- name : Install Cosign
104
104
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 }}
105
110
- name : Check images
106
111
run : |
107
112
docker buildx imagetools inspect ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
108
113
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 }}
110
115
- uses : anchore/sbom-action@v0
111
116
with :
112
117
image : ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
You can’t perform that action at this time.
0 commit comments