forked from ComplianceAsCode/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.launch.json
92 lines (92 loc) · 2.79 KB
/
.gitpod.launch.json
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
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"inputs": [
{
"id": "pickContainerName",
"description": "Select Container Name",
"type": "pickString",
"options": ["&&CONTAINER_NAME&&"],
"default": "&&CONTAINER_NAME&&"
},
{
"id": "pickProductName",
"description": "Select Product Name",
"type": "pickString",
"options": [
"chromium",
"debian11", "debian12",
"eap6",
"fedora",
"firefox",
"macos1015",
"ocp4",
"ol7", "ol8",
"opensuse", "rhel8", "rhel9", "rhel10",
"rhosp10", "rhosp13",
"rhv4",
"sle12", "sle15",
"ubuntu1604", "ubuntu1804", "ubuntu2004", "ubuntu2204"
],
"default": "&&DEFAULT_PRODUCT&&"
},
{
"id": "pickRemediationType",
"description": "Select Remediation Type",
"type": "pickString",
"options": ["oscap", "bash", "ansible"],
"default": "bash"
}
],
"configurations": [
{
"name": "Run Automatus using Docker backend",
"type": "python",
"request": "launch",
"console": "integratedTerminal",
"program": "${workspaceFolder}/tests/automatus.py",
"args": [
"rule",
"--dontclean",
"--debug",
"--docker",
"${input:pickContainerName}",
"--datastream",
"${workspaceFolder}/build/ssg-${input:pickProductName}-ds.xml",
"--remediate-using",
"${input:pickRemediationType}",
"--remove-machine-only",
"--remove-ocp4-only",
"--remove-fips-certified",
"--remove-platforms",
"${command:content-navigator.getRuleId}"
],
"env": {
"SSH_ADDITIONAL_OPTIONS": "-o IdentityFile=${workspaceFolder}/&&PRIVATE_KEY_FILEPATH&&"
}
},
{
"name": "Run Automatus using Docker backend (test_rule_in_container.sh)",
"type": "bashdb",
"request": "launch",
"program": "${workspaceFolder}/tests/test_rule_in_container.sh",
"args": [
"--dontclean",
"--docker",
"--name",
"${input:pickContainerName}",
"--datastream",
"${workspaceFolder}/build/ssg-${input:pickProductName}-ds.xml",
"--remediate-using",
"${input:pickRemediationType}",
"${command:content-navigator.getRuleId}"
],
"env": {
"ADDITIONAL_SSGTS_OPTIONS": "--debug --duplicate-templates --remove-fips-certified",
"SSH_ADDITIONAL_OPTIONS": "-o IdentityFile=${workspaceFolder}/&&PRIVATE_KEY_FILEPATH&&"
}
}
]
}