@@ -346,6 +346,28 @@ def main():
346346 {"benchmarks" : ["disa_stig" ]}
347347 )
348348 new_yaml ["tags" ].remove ("stig" )
349+ if "nlmapgov_plus" in rule_yaml ["tags" ]:
350+ if "benchmarks" in new_yaml ["platforms" ]["macOS" ][os_ ]:
351+ new_yaml ["platforms" ]["macOS" ][os_ ]["benchmarks" ].append (
352+ "nlmapgov_plus"
353+ )
354+ else :
355+ new_yaml ["platforms" ]["macOS" ][os_ ].update (
356+ {"benchmarks" : ["nlmapgov_plus" ]}
357+ )
358+ new_yaml ["tags" ].remove ("nlmapgov_plus" )
359+
360+ if "nlmapgov_base" in rule_yaml ["tags" ]:
361+ if "benchmarks" in new_yaml ["platforms" ]["macOS" ][os_ ]:
362+ new_yaml ["platforms" ]["macOS" ][os_ ]["benchmarks" ].append (
363+ "nlmapgov_base"
364+ )
365+ else :
366+ new_yaml ["platforms" ]["macOS" ][os_ ].update (
367+ {"benchmarks" : ["nlmapgov_base" ]}
368+ )
369+ new_yaml ["tags" ].remove ("nlmapgov_base" )
370+
349371 # print(new_yaml)
350372 if "ddm_info" in rule_yaml :
351373 new_yaml .update ({"ddm_info" : rule_yaml ["ddm_info" ]})
@@ -755,6 +777,8 @@ def main():
755777 or new_tag == "ios"
756778 or "indigo" in new_tag
757779 or "none" in new_tag
780+ or "nlmapgov_base" in new_tag
781+ or "nlmapgov_plus" in new_tag
758782 ):
759783 continue
760784 if "ios" in new_tag or "visionos" in new_tag :
@@ -1008,6 +1032,32 @@ def main():
10081032 os_
10091033 ].update ({"benchmarks" : ["disa_stig" ]})
10101034
1035+ if "nlmapgov_plus" in rule_yaml ["tags" ]:
1036+ if (
1037+ "benchmarks"
1038+ in update_rule_yaml ["platforms" ]["macOS" ][os_ ]
1039+ ):
1040+ update_rule_yaml ["platforms" ]["macOS" ][os_ ][
1041+ "benchmarks"
1042+ ].append ("nlmapgov_plus" )
1043+ else :
1044+ update_rule_yaml ["platforms" ]["macOS" ][
1045+ os_
1046+ ].update ({"benchmarks" : ["nlmapgov_plus" ]})
1047+
1048+ if "nlmapgov_base" in rule_yaml ["tags" ]:
1049+ if (
1050+ "benchmarks"
1051+ in update_rule_yaml ["platforms" ]["macOS" ][os_ ]
1052+ ):
1053+ update_rule_yaml ["platforms" ]["macOS" ][os_ ][
1054+ "benchmarks"
1055+ ].append ("nlmapgov_base" )
1056+ else :
1057+ update_rule_yaml ["platforms" ]["macOS" ][
1058+ os_
1059+ ].update ({"benchmarks" : ["nlmapgov_base" ]})
1060+
10111061 if (
10121062 "check"
10131063 not in update_rule_yaml ["platforms" ]["macOS" ]
@@ -1129,6 +1179,28 @@ def main():
11291179 {"benchmarks" : ["disa_stig" ]}
11301180 )
11311181 new_yaml ["tags" ].remove ("stig" )
1182+
1183+ if "nlmapgov_plus" in rule_yaml ["tags" ]:
1184+ if "benchmarks" in new_yaml ["platforms" ]["macOS" ][os_ ]:
1185+ new_yaml ["platforms" ]["macOS" ][os_ ][
1186+ "benchmarks"
1187+ ].append ("nlmapgov_plus" )
1188+ else :
1189+ new_yaml ["platforms" ]["macOS" ][os_ ].update (
1190+ {"benchmarks" : ["nlmapgov_plus" ]}
1191+ )
1192+ new_yaml ["tags" ].remove ("nlmapgov_plus" )
1193+ if "nlmapgov_base" in rule_yaml ["tags" ]:
1194+ if "benchmarks" in new_yaml ["platforms" ]["macOS" ][os_ ]:
1195+ new_yaml ["platforms" ]["macOS" ][os_ ][
1196+ "benchmarks"
1197+ ].append ("nlmapgov_base" )
1198+ else :
1199+ new_yaml ["platforms" ]["macOS" ][os_ ].update (
1200+ {"benchmarks" : ["nlmapgov_base" ]}
1201+ )
1202+ new_yaml ["tags" ].remove ("nlmapgov_base" )
1203+
11321204 # print(new_yaml)
11331205 if (
11341206 os_ == "ios_18"
0 commit comments