@@ -37,6 +37,7 @@ def get_cpe(self, repo_path: Path) -> Optional[str]:
37
37
"CVE-2019-0190" , # openssl, can be only triggered in combination with Apache HTTP Server version 2.4.37
38
38
]
39
39
40
+ # Define common dependencies used in all branches
40
41
common_dependencies : list [str ] = [
41
42
"ada" ,
42
43
"acorn" ,
@@ -51,17 +52,23 @@ def get_cpe(self, repo_path: Path) -> Optional[str]:
51
52
"npm" ,
52
53
"OpenSSL" ,
53
54
"libuv" ,
54
- "simdutf" ,
55
55
"uvwasi" ,
56
56
"undici" ,
57
57
"zlib" ,
58
58
]
59
59
60
+ # Define branch-specific dependencies
61
+ main_specific = ["simdutf" ]
62
+ v22_specific = ["simdutf" ]
63
+ v20_specific = ["simdutf" ]
64
+
65
+ # Combine common dependencies with branch-specific ones
60
66
dependencies_per_branch : dict [str , list [str ]] = {
61
- "main" : common_dependencies ,
62
- "v24.x" : common_dependencies ,
63
- "v22.x" : common_dependencies ,
64
- "v20.x" : common_dependencies ,
67
+ "main" : common_dependencies , # No simdutf in main
68
+ "v24.x" : common_dependencies , # No simdutf in v24.x
69
+ "v23.x" : common_dependencies , # No simdutf in v23.x
70
+ "v22.x" : common_dependencies + v22_specific ,
71
+ "v20.x" : common_dependencies + v20_specific ,
65
72
}
66
73
67
74
0 commit comments