This repository was archived by the owner on Sep 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathconstants.ts
More file actions
73 lines (69 loc) · 2.29 KB
/
constants.ts
File metadata and controls
73 lines (69 loc) · 2.29 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
const LOG_LEVELS = { debug: 4, info: 3, warn: 2, error: 1, none: 0 };
const CURRENT_LOG_LEVEL =
LOG_LEVELS[process.env.LOG_LEVEL ?? "info"] || LOG_LEVELS.info;
export const logger = {
debug: (...args: unknown[]) => {
CURRENT_LOG_LEVEL >= LOG_LEVELS.debug && console.log("[DEBUG]", ...args);
},
info: (...args: unknown[]) => {
CURRENT_LOG_LEVEL >= LOG_LEVELS.info && console.log("[INFO]", ...args);
},
warn: (...args: unknown[]) => {
CURRENT_LOG_LEVEL >= LOG_LEVELS.warn && console.warn("[WARN]", ...args);
},
error: (...args: unknown[]) => {
CURRENT_LOG_LEVEL >= LOG_LEVELS.error && console.error("[ERROR]", ...args);
},
};
export const SETUP_TIMEOUT = 240_000;
export const SBOM_FILES = [
"quarkus-bom-2.13.8.Final-redhat-00004.json.bz2",
"ubi8_ubi-micro-8.8-7.1696517612.json.bz2",
"ubi8-8.8-1067.json.bz2",
"ubi8-minimal-8.8-1072.1697626218.json.bz2",
"ubi9-9.3-782.json.bz2",
"ubi9-minimal-9.3-1361.json.bz2",
"example_component_quarkus.json.bz2",
"example_product_quarkus.json.bz2",
"openshift-ose-console-cdx.json.bz2",
"openssl-3.0.7-18.el9_2.cdx_1.6.sbom.json.bz2",
"openssl-3.0.7-18.el9_2.spdx.json.bz2",
"RHEL-8.10.0.Z_curl@7.61.1-34.el8_10.2.json.bz2",
"RHEL-8.10.0.Z.MAIN+EUS.json.bz2",
"rhel-9.2-eus.cdx.json.bz2",
"rhel-9.2-eus.spdx.json.bz2",
"spdx-ancestor-of-example.json.bz2",
"example_container_index.json.bz2",
];
export const ADVISORY_FILES = [
"cve-2022-45787.json.bz2",
"cve-2023-20861.json.bz2",
"cve-2023-2974.json.bz2",
"cve-2023-0044.json.bz2",
"cve-2023-20862.json.bz2",
"cve-2023-2976.json.bz2",
"cve-2023-0481.json.bz2",
"cve-2023-21971.json.bz2",
"cve-2023-3223.json.bz2",
"cve-2023-0482.json.bz2",
"cve-2023-2454.json.bz2",
"cve-2023-33201.json.bz2",
"cve-2023-1108.json.bz2",
"cve-2023-2455.json.bz2",
"cve-2023-34453.json.bz2",
"cve-2023-1370.json.bz2",
"cve-2023-24815.json.bz2",
"cve-2023-34454.json.bz2",
"cve-2023-1436.json.bz2",
"cve-2023-24998.json.bz2",
"cve-2023-34455.json.bz2",
"cve-2023-1584.json.bz2",
"cve-2023-26464.json.bz2",
// "cve-2023-44487.json.bz2", // HTTP 413 error: file to big to be uploaded
"cve-2023-1664.json.bz2",
"cve-2023-2798.json.bz2",
"cve-2023-4853.json.bz2",
"cve-2023-20860.json.bz2",
"cve-2023-28867.json.bz2",
"cve-2024-26308.json.bz2",
];