From 9ab22fb6b9b14aa6f1bc3e6dfa270458c44c7f84 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Wed, 10 Feb 2021 06:58:20 -0800 Subject: [PATCH] add some charts, show more tallys/sums --- generate_report.py | 2 - template.html | 164 ++++++++++++++++++++++++++++++++++----------- 2 files changed, 125 insertions(+), 41 deletions(-) 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