Skip to content
Snippets Groups Projects
Commit 2626e57b authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Tuned threshold for report severity

parent 81268e39
No related branches found
No related tags found
1 merge request!54Tuned threshold for report severity
Pipeline #113240 failed
...@@ -386,7 +386,7 @@ def process_global_reports_info(reports): ...@@ -386,7 +386,7 @@ def process_global_reports_info(reports):
glob_threat = reports[host]['global']['threat'] glob_threat = reports[host]['global']['threat']
reports['deployment'] = {'severity': glob_severity, reports['deployment'] = {'severity': glob_severity,
'threat': glob_threat} 'threat': glob_threat}
if reports['deployment']['severity'] < 2: if reports['deployment']['severity'] < 4:
reports['global'] = "OK" reports['global'] = "OK"
else: else:
reports['global'] = "NOK" reports['global'] = "NOK"
...@@ -507,4 +507,4 @@ for host,ports in endpoints.items(): ...@@ -507,4 +507,4 @@ for host,ports in endpoints.items():
reports = process_global_reports_info(reports) reports = process_global_reports_info(reports)
with open(summary_filename, "w") as f: with open(summary_filename, "w") as f:
f.write(json.dumps(reports)) f.write(json.dumps(reports))
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment