File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 steps :
2929 - name : Install Cosign
3030 uses : sigstore/cosign-installer@cad07c2e89fa2edd6e2d7bab4c1aa38e53f76003 # v4.1.1
31- with :
32- cosign-release : ' v2.6.1'
3331 - name : Job information
3432 run : |
3533 echo "Job information"
Original file line number Diff line number Diff line change 5252 echo " Signing docker image ${TAG} (digest: ${DIGEST} )..."
5353 cosign sign --yes " ${DIGEST} "
5454
55- echo " Verifying signature of docker image ${TAG} (digest: ${DIGEST} )..."
56- cosign verify " ${DIGEST} " --certificate-identity=" ${CERT_IDENTITY} " --certificate-oidc-issuer=" ${CERT_ISSUER} "
55+ echo " Verifying signature of docker image ${TAG} (digest: ${DIGEST} ) after a 30 seconds wait..."
56+ sleep 30 # the signature may not be returned immediately after being published, so as a mitigation we wait for 30 seconds before verifying
57+ cosign verify --certificate-identity=" ${CERT_IDENTITY} " --certificate-oidc-issuer=" ${CERT_ISSUER} " " ${DIGEST} "
5758
5859 echo " Signed and verified signature of docker image ${TAG} (digest: ${DIGEST} )..."
5960
You can’t perform that action at this time.
0 commit comments