1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-28 10:28:36 +00:00

chore: add condition checking to notary attestation verify chainsaw tests (#10288)

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Vishal Choudhary 2024-05-31 02:56:44 +05:30 committed by GitHub
parent ba618897ff
commit f4482c4699
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,4 +60,20 @@ spec:
attestors:
- entries:
- certificates:
cert: "{{ keys.data.certificate }}"
cert: "{{ keys.data.certificate }}"
conditions:
- all:
- key: "{{ components[].licenses[].expression }}"
operator: AllIn
value: ["GPL-3.0"]
- type: vulnerability-scan
attestors:
- entries:
- certificates:
cert: "{{ keys.data.certificate }}"
conditions:
- all:
- key: "{{ source.type }}"
operator: Equals
value: "image"