forked from cvdabbeele/troopers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smartcheck.snippet
35 lines (35 loc) · 1006 Bytes
/
smartcheck.snippet
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
parallel (
"Test": {
echo 'All functional tests passed'
},
"Check Image (pre-Registry)": {
smartcheckScan([
imageName: "${REPOSITORY}:$BUILD_NUMBER",
smartcheckHost: "${DSSC_SERVICE}",
smartcheckCredentialsId: "smartcheck-auth",
insecureSkipTLSVerify: true,
insecureSkipRegistryTLSVerify: true,
preregistryScan: true,
preregistryHost: "${DSSC_REGISTRY}",
preregistryCredentialsId: "preregistry-auth",
findingsThreshold: new groovy.json.JsonBuilder([
malware: 0,
vulnerabilities: [
defcon1: 0,
critical: 0,
high: 0,
],
contents: [
defcon1: 0,
critical: 0,
high: 0,
],
checklists: [
defcon1: 0,
critical: 0,
high: 0,
],
]).toString(),
])
}
)