Implement control gates and security checks in your attestations.
policies
section. Policies can be applied to any material, but also to the attestation statement as a whole.
SBOM_CYCLONEDX_JSON
, only SBOM materials (sbom
and another-sbom
in this case) will be evaluated against it.
If we wanted to only evaluate the policy against one specific sbom
material, and skip the other, we should filter them by name:
sbom
material must be evaluated by the sbom-banned-licenses
policy.
my-custom-remotepolicy.yaml
, which has a type
property set to ATTESTATION
.
This brings the opportunity to validate global attestation properties, like annotations, the presence of a material, etc. You can see this policy and other examples in the examples folder.
chainloop attestation add
commands, while attestation policies are evaluated in chainloop attestation push
command.