Last active
April 13, 2022 12:31
-
-
Save zregvart/f682806869a48d41bd09eaa36da2a402 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IMAGE=default-route-openshift-image-registry.apps-crc.testing/tekton-chains/kaniko-chains | |
COSIGN_EXPERIMENTAL=1 cosign attest \ | |
--predicate <(jq '{"results": .}' image-fail.json) \ | |
--type https://redhat.com/test/v1 \ | |
--rekor-url https://rekor-server.apps-crc.testing \ | |
--key k8s://tekton-chains/signing-secrets \ | |
$IMAGE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"filename": "image-fail.json", | |
"namespace": "main", | |
"successes": 19, | |
"warnings": [ | |
{ | |
"msg": "The 'maintainer' label should be defined", | |
"metadata": { | |
"details": { | |
"description": "The name and email of the maintainer (usually the submitter). Should contain `@redhat.com` or `Red Hat`.", | |
"name": "maintainer_label_required", | |
"url": "https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/guide_to_layered_image_build_service_osbs#jive_content_id_Labels" | |
} | |
} | |
} | |
], | |
"failures": [ | |
{ | |
"msg": "The Architecture label is deprecated", | |
"metadata": { | |
"details": { | |
"description": "The 'Architecture' label is deprecated, replace with 'architecture'", | |
"name": "architecture_label_deprecated", | |
"url": "https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/guide_to_layered_image_build_service_osbs#jive_content_id_Labels" | |
} | |
} | |
}, | |
{ | |
"msg": "The Release label is deprecated", | |
"metadata": { | |
"details": { | |
"description": "The 'Release' label is deprecated, replace with 'release'", | |
"name": "release_label_deprecated", | |
"url": "https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/guide_to_layered_image_build_service_osbs#jive_content_id_Labels" | |
} | |
} | |
}, | |
{ | |
"msg": "The 'architecture' label is required", | |
"metadata": { | |
"details": { | |
"description": "Architecture the software in the image should target.", | |
"name": "architecture_label_required", | |
"url": "https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/guide_to_layered_image_build_service_osbs#jive_content_id_Labels" | |
} | |
} | |
}, | |
{ | |
"msg": "The 'release' label is required", | |
"metadata": { | |
"details": { | |
"description": "Release Number for this version.", | |
"name": "release_label_required", | |
"url": "https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/guide_to_layered_image_build_service_osbs#jive_content_id_Labels" | |
} | |
} | |
} | |
] | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"payloadType": "application/vnd.in-toto+json", | |
"payload": "eyJfdHlwZSI6Imh0dHBzOi8vaW4tdG90by5pby9TdGF0ZW1lbnQvdjAuMSIsInByZWRpY2F0ZVR5cGUiOiJodHRwczovL3JlZGhhdC5jb20vdGVzdC92MSIsInN1YmplY3QiOlt7Im5hbWUiOiJkZWZhdWx0LXJvdXRlLW9wZW5zaGlmdC1pbWFnZS1yZWdpc3RyeS5hcHBzLWNyYy50ZXN0aW5nL3Rla3Rvbi1jaGFpbnMva2FuaWtvLWNoYWlucyIsImRpZ2VzdCI6eyJzaGEyNTYiOiI3ZDQ5MTVmMmE5N2RkNDEwNzAzN2Y3Njk4ODlkZDYxNDhmN2NkMTc0ODNiNTFjZTFkMzhiM2E0MWY4OWY4YzFhIn19XSwicHJlZGljYXRlIjp7InJlc3VsdHMiOlt7ImZhaWx1cmVzIjpbeyJtZXRhZGF0YSI6eyJkZXRhaWxzIjp7ImRlc2NyaXB0aW9uIjoiVGhlICdBcmNoaXRlY3R1cmUnIGxhYmVsIGlzIGRlcHJlY2F0ZWQsIHJlcGxhY2Ugd2l0aCAnYXJjaGl0ZWN0dXJlJyIsIm5hbWUiOiJhcmNoaXRlY3R1cmVfbGFiZWxfZGVwcmVjYXRlZCIsInVybCI6Imh0dHBzOi8v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V9jb250ZW50X2lkX0xhYmVscyJ9fSwibXNnIjoiVGhlICdtYWludGFpbmVyJyBsYWJlbCBzaG91bGQgYmUgZGVmaW5lZCJ9XX1dfX0=", | |
"signatures": [ | |
{ | |
"keyid": "", | |
"sig": "MEYCIQD0idxC3MJ1cFSAy03SOhmJVdQdRZ86Dh7VjQ5UHSB8DAIhAPvZXy6X/bCq5VhWEMkdc7WyOsC1ATSgm73BkBUgrz9d" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_type": "https://in-toto.io/Statement/v0.1", | |
"predicateType": "https://redhat.com/test/v1", | |
"subject": [ | |
{ | |
"name": "default-route-openshift-image-registry.apps-crc.testing/tekton-chains/kaniko-chains", | |
"digest": { | |
"sha256": "7d4915f2a97dd4107037f769889dd6148f7cd17483b51ce1d38b3a41f89f8c1a" | |
} | |
} | |
], | |
"predicate": { | |
"results": [ | |
{ | |
"failures": [ | |
{ | |
"metadata": { | |
"details": { | |
"description": "The 'Architecture' label is deprecated, replace with 'architecture'", | |
"name": "architecture_label_deprecated", | |
"url": "https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/guide_to_layered_image_build_service_osbs#jive_content_id_Labels" | |
} | |
}, | |
"msg": "The Architecture label is deprecated" | |
}, | |
{ | |
"metadata": { | |
"details": { | |
"description": "The 'Release' label is deprecated, replace with 'release'", | |
"name": "release_label_deprecated", | |
"url": "https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/guide_to_layered_image_build_service_osbs#jive_content_id_Labels" | |
} | |
}, | |
"msg": "The Release label is deprecated" | |
}, | |
{ | |
"metadata": { | |
"details": { | |
"description": "Architecture the software in the image should target.", | |
"name": "architecture_label_required", | |
"url": "https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/guide_to_layered_image_build_service_osbs#jive_content_id_Labels" | |
} | |
}, | |
"msg": "The 'architecture' label is required" | |
}, | |
{ | |
"metadata": { | |
"details": { | |
"description": "Release Number for this version.", | |
"name": "release_label_required", | |
"url": "https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/guide_to_layered_image_build_service_osbs#jive_content_id_Labels" | |
} | |
}, | |
"msg": "The 'release' label is required" | |
} | |
], | |
"filename": "image-fail.json", | |
"namespace": "main", | |
"successes": 19, | |
"warnings": [ | |
{ | |
"metadata": { | |
"details": { | |
"description": "The name and email of the maintainer (usually the submitter). Should contain `@redhat.com` or `Red Hat`.", | |
"name": "maintainer_label_required", | |
"url": "https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/guide_to_layered_image_build_service_osbs#jive_content_id_Labels" | |
} | |
}, | |
"msg": "The 'maintainer' label should be defined" | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment