diff --git a/generate_report.py b/generate_report.py index c94ec71..aede838 100644 --- a/generate_report.py +++ b/generate_report.py @@ -43,8 +43,6 @@ def run(): d = csv_data[idx] t = totals - - if d['account_id'] not in t['accounts']: t['accounts'].append(d['account_id']) diff --git a/template.html b/template.html index 0cb1e46..8957369 100644 --- a/template.html +++ b/template.html @@ -38,12 +38,11 @@

Prowler Scan Results

Summary

-
Accounts:
{{ totals['accounts'] | length }}
-
Regions:
{{ totals['regions'] | length }}
+
Accounts:
{{ totals['accounts'] | join(', ') }}
+
Regions:
{{ totals['regions'] | join(', ') }}
Total Scans:
{{ totals['scan_results'] | length }}
-
Passes:
{{ totals['passes'] | length }}
-
Fails:
{{ totals['fails'] | length }}
-
Infos:
{{ totals['infos'] | length }}
+ +

Findings

@@ -51,27 +50,27 @@

-
+
- +
- - - - - - - - + + + + + + + + @@ -96,22 +95,22 @@

-
Account IDRegionIDTextNotesComplianceSeverityService NameAccount IDRegionIDTextNotesComplianceSeverityService Name
+
- - - - - - - - + + + + + + + + @@ -136,22 +135,22 @@

-
Account IDRegionIDTextNotesComplianceSeverityService NameAccount IDRegionIDTextNotesComplianceSeverityService Name
+
- - - - - - - - + + + + + + + + @@ -175,9 +174,96 @@ - - + + + +
Account IDRegionIDTextNotesComplianceSeverityService NameAccount IDRegionIDTextNotesComplianceSeverityService Name