
See our Contracts reference for more information.
Update the contract
Each workflow has attached an empty contract by default, let’s update it to require a container image, an SBOM and a vulnerability report.Initialize an Attestation process
Let’s perform another attestation, but note how this time the requirements have changedAlternatively, you can create the contract on the fly during the attestation process. To do so, you can provide the reference to a remote, or local yaml file containing the contract definition.
Adding materials and pushing the attestation.
Note that theattestation init
command output this time includes a section indicating that a CONTAINER_IMAGE
is required alongside with SBOM_CYCLONEDX_JSON
and SARIF
.
What would happen if we try to push without adding any material?
Command Output
Command Output
Note that we have specified
--name container
, since that’s the material name that the contract expects. You can learn more about the adding materials process in the Adding Materials section.Command Output
Command Output
Command Output
Command Output
As before, we can see the details of our attestation in Chainloop Platform:
