-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzeropath-soundcheck.yaml
More file actions
139 lines (134 loc) · 5.03 KB
/
zeropath-soundcheck.yaml
File metadata and controls
139 lines (134 loc) · 5.03 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
soundcheck:
collectors:
zeropath:
collects:
- filter:
- kind:
- component
checks:
- id: zeropath-linked
ownerEntityRef: group:default/guests
name: Zeropath repository linked
description: Ensures every component maps to a Zeropath repository.
rule:
all:
- factRef: zeropath:default/is_configured
path: $.value
operator: equal
value: true
filter:
- kind:
- component
passedMessage: Zeropath repository located for this entity.
failedMessage: >-
Add a github.com/project-slug annotation that matches the Zeropath repository slug.
- id: zeropath-pr-scanning
ownerEntityRef: group:default/guests
name: Zeropath PR scanning enabled
description: Requires Zeropath PR scanning to be enabled for the repository.
rule:
any:
- all:
- factRef: zeropath:default/is_configured
path: $.value
operator: equal
value: true
- factRef: zeropath:default/pr_scanning_enabled
path: $.value
operator: equal
value: true
- all:
- factRef: zeropath:default/is_configured
path: $.value
operator: equal
value: false
notApplicableMessage: >-
Repository is not linked to Zeropath. Ensure the github.com/project-slug annotation matches the Zeropath repository slug.
filter:
- kind:
- component
passedMessage: Zeropath PR scanning is enabled.
failedMessage: Enable Zeropath PR scanning for this repository.
- id: zeropath-critical-zero
ownerEntityRef: group:default/guests
name: Critical Zeropath issues remediated
description: Fails if Zeropath reports any critical issues.
rule:
any:
- all:
- factRef: zeropath:default/is_configured
path: $.value
operator: equal
value: true
- factRef: zeropath:default/issues_critical_count
path: $.value
operator: lessThanInclusive
value: 0
- all:
- factRef: zeropath:default/is_configured
path: $.value
operator: equal
value: false
notApplicableMessage: >-
Repository is not linked to Zeropath. Ensure the github.com/project-slug annotation matches the Zeropath repository slug.
filter:
- kind:
- component
passedMessage: No critical Zeropath issues remain.
failedMessage: Resolve the critical Zeropath issues reported by Zeropath.
- id: zeropath-high-zero
ownerEntityRef: group:default/guests
name: High Zeropath issues remediated
description: Fails if Zeropath reports any high severity issues.
rule:
any:
- all:
- factRef: zeropath:default/is_configured
path: $.value
operator: equal
value: true
- factRef: zeropath:default/issues_high_count
path: $.value
operator: lessThanInclusive
value: 0
- all:
- factRef: zeropath:default/is_configured
path: $.value
operator: equal
value: false
notApplicableMessage: >-
Repository is not linked to Zeropath. Ensure the github.com/project-slug annotation matches the Zeropath repository slug.
filter:
- kind:
- component
passedMessage: No high severity Zeropath issues remain.
failedMessage: Resolve the high severity Zeropath issues reported by Zeropath.
tracks:
- id: zeropath-security-posture
name: Zeropath Security Posture
description: Ensures catalog components stay connected to Zeropath and have no outstanding high or critical issues.
ownerEntityRef: group:default/guests
filter:
- kind:
- component
levels:
- ordinal: 1
name: Connected
description: Entity is linked to a Zeropath repository.
checks:
- id: zeropath-linked
name: Zeropath repository linked
description: Confirms the component has a matching Zeropath repository.
- ordinal: 2
name: Healthy posture
description: Zeropath PR scanning is enabled and there are no outstanding high or critical issues.
checks:
- id: zeropath-pr-scanning
name: Zeropath PR scanning enabled
description: Zeropath PR scanning is enabled for the repository.
- id: zeropath-critical-zero
name: Critical Zeropath issues remediated
description: Zeropath reports zero critical issues.
- id: zeropath-high-zero
name: High Zeropath issues remediated
description: Zeropath reports zero high severity issues.