forked from tinaheidinger/test-container
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkyverno-policy.yml
More file actions
38 lines (38 loc) · 1.11 KB
/
kyverno-policy.yml
File metadata and controls
38 lines (38 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
annotations:
pod-policies.kyverno.io/autogen-controllers: none
name: sigstore-attestation-verification
spec:
background: false
validationFailureAction: Enforce
webhookTimeoutSeconds: 30
rules:
- match:
any:
- resources:
kinds:
- Pod
name: sigstore-attestation-verification
verifyImages:
- imageReferences:
- "*"
type: SigstoreBundle
attestations:
- attestors:
- entries:
- keyless:
issuerRegExp: https://token\.actions\.githubusercontent.+
subjectRegExp: https://github\.com/.+
rekor:
url: https://rekor.sigstore.dev
conditions:
- all:
- key: "{{ buildDefinition.externalParameters.workflow.repository }}"
operator: Equals
value: "https://github.com/tinaheidinger/test-container"
- key: '{{ buildDefinition.buildType }}'
operator: Equals
value: https://actions.github.io/buildtypes/workflow/v1
type: https://slsa.dev/provenance/v1