|
67 | 67 | from prowler.lib.outputs.compliance.cis.cis_azure import AzureCIS |
68 | 68 | from prowler.lib.outputs.compliance.cis.cis_gcp import GCPCIS |
69 | 69 | from prowler.lib.outputs.compliance.cis.cis_github import GithubCIS |
| 70 | +from prowler.lib.outputs.compliance.cis.cis_googleworkspace import GoogleWorkspaceCIS |
70 | 71 | from prowler.lib.outputs.compliance.cis.cis_kubernetes import KubernetesCIS |
71 | 72 | from prowler.lib.outputs.compliance.cis.cis_m365 import M365CIS |
72 | 73 | from prowler.lib.outputs.compliance.cis.cis_oraclecloud import OracleCloudCIS |
@@ -1138,6 +1139,35 @@ def streaming_callback(findings_batch): |
1138 | 1139 | generated_outputs["compliance"].append(generic_compliance) |
1139 | 1140 | generic_compliance.batch_write_data_to_file() |
1140 | 1141 |
|
| 1142 | + elif provider == "googleworkspace": |
| 1143 | + for compliance_name in input_compliance_frameworks: |
| 1144 | + if compliance_name.startswith("cis_"): |
| 1145 | + # Generate CIS Finding Object |
| 1146 | + filename = ( |
| 1147 | + f"{output_options.output_directory}/compliance/" |
| 1148 | + f"{output_options.output_filename}_{compliance_name}.csv" |
| 1149 | + ) |
| 1150 | + cis = GoogleWorkspaceCIS( |
| 1151 | + findings=finding_outputs, |
| 1152 | + compliance=bulk_compliance_frameworks[compliance_name], |
| 1153 | + file_path=filename, |
| 1154 | + ) |
| 1155 | + generated_outputs["compliance"].append(cis) |
| 1156 | + cis.batch_write_data_to_file() |
| 1157 | + else: |
| 1158 | + filename = ( |
| 1159 | + f"{output_options.output_directory}/compliance/" |
| 1160 | + f"{output_options.output_filename}_{compliance_name}.csv" |
| 1161 | + ) |
| 1162 | + generic_compliance = GenericCompliance( |
| 1163 | + findings=finding_outputs, |
| 1164 | + compliance=bulk_compliance_frameworks[compliance_name], |
| 1165 | + create_file_descriptor=True, |
| 1166 | + file_path=filename, |
| 1167 | + ) |
| 1168 | + generated_outputs["compliance"].append(generic_compliance) |
| 1169 | + generic_compliance.batch_write_data_to_file() |
| 1170 | + |
1141 | 1171 | elif provider == "oraclecloud": |
1142 | 1172 | for compliance_name in input_compliance_frameworks: |
1143 | 1173 | if compliance_name.startswith("cis_"): |
|
0 commit comments