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:
parent
ba618897ff
commit
f4482c4699
1 changed files with 17 additions and 1 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue