File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ jobs:
104104 - name : " 🔏 Sign container image"
105105 if : steps.release.outputs.new_release_published == 'true'
106106 env :
107+ COSIGN_PUBLIC_KEY : ${{ secrets.COSIGN_PUBLIC_KEY || secrets.NHS_COSIGN_PUBLIC_KEY }}
107108 COSIGN_PRIVATE_KEY : ${{ secrets.COSIGN_PRIVATE_KEY || secrets.NHS_COSIGN_PRIVATE_KEY }}
108109 COSIGN_PASSWORD : ${{ secrets.COSIGN_PASSWORD || secrets.NHS_COSIGN_PASSWORD }}
109110 IMAGE_NAME : ghcr.io/${{ github.repository }}
@@ -113,10 +114,11 @@ jobs:
113114 sudo mv cosign-linux-amd64 /usr/local/bin/cosign
114115 sudo chmod +x /usr/local/bin/cosign
115116 echo "$COSIGN_PRIVATE_KEY" > cosign.key
116- cosign sign --key cosign.key ${IMAGE_NAME}:app-${VERSION}
117- cosign verify --key cosign.key ${IMAGE_NAME}:app-${VERSION}
118- cosign sign --key cosign.key ${IMAGE_NAME}:app-latest
119- cosign verify --key cosign.key ${IMAGE_NAME}:app-latest
117+ echo "$COSIGN_PUBLIC_KEY" > cosign.pub
118+ cosign sign --key cosign.key --tlog-upload=true ${IMAGE_NAME}:app-${VERSION}
119+ cosign verify --key cosign.pub ${IMAGE_NAME}:app-${VERSION}
120+ cosign sign --key cosign.key --tlog-upload=true ${IMAGE_NAME}:app-latest
121+ cosign verify --key cosign.pub ${IMAGE_NAME}:app-latest
120122
121123 - name : " 📝 Update release notes with image info"
122124 if : steps.release.outputs.new_release_published == 'true'
You can’t perform that action at this time.
0 commit comments