Skip to content

Commit

Permalink
Cosign now needs specific attestation types.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenKnoops authored Sep 21, 2022
1 parent 4bd11de commit e4769bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions container_digest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ then
{
echo "SLSA Provenance file is attested. You can verify it with the following command."
echo '```bash'
echo "cosign verify-attestation --key cosign.pub $registry_url_prefix/$imagename@${containerdigest} | jq '.payload |= @base64d | .payload | fromjson | select(.predicateType==\"https://slsa.dev/provenance/v0.2\" ) | .'"
echo "cosign verify-attestation --key cosign.pub --type slsaprovenance $registry_url_prefix/$imagename@${containerdigest} | jq '.payload |= @base64d | .payload | fromjson | select(.predicateType==\"https://slsa.dev/provenance/v0.2\" ) | .'"
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
fi
Expand Down Expand Up @@ -160,7 +160,7 @@ then
{
echo "SBOM file is attested. You can verify it with the following command."
echo '```bash'
echo "cosign verify-attestation --key cosign.pub $registry_url_prefix/$imagename@${containerdigest} | jq '.payload |= @base64d | .payload | fromjson | select( .predicateType==\"https://spdx.dev/Document\" ) | .predicate.Data | fromjson | .'"
echo "cosign verify-attestation --key cosign.pub --type spdx $registry_url_prefix/$imagename@${containerdigest} | jq '.payload |= @base64d | .payload | fromjson | select( .predicateType==\"https://spdx.dev/Document\" ) | .predicate.Data | fromjson | .'"
echo '```'
} >> "$GITHUB_STEP_SUMMARY"

Expand Down

0 comments on commit e4769bf

Please sign in to comment.