From f0903093eeb8ab003222586dbb3846ccb4692f1e Mon Sep 17 00:00:00 2001 From: Manuel Sommer Date: Mon, 1 Dec 2025 09:07:18 +0100 Subject: [PATCH] :lipstick: restructure whispers reports --- .../scans/whispers/empty_with_error.json | 2 +- .../scans/whispers/whispers_many_vul.json | 48 ++++++++++++++++++- .../scans/whispers/whispers_one_vul.json | 12 ++++- .../scans/whispers/whispers_one_vul_v2.2.json | 12 ++++- .../scans/whispers/whispers_zero_vul.json | 2 +- 5 files changed, 71 insertions(+), 5 deletions(-) diff --git a/unittests/scans/whispers/empty_with_error.json b/unittests/scans/whispers/empty_with_error.json index fe51488c706..0637a088a01 100644 --- a/unittests/scans/whispers/empty_with_error.json +++ b/unittests/scans/whispers/empty_with_error.json @@ -1 +1 @@ -[] +[] \ No newline at end of file diff --git a/unittests/scans/whispers/whispers_many_vul.json b/unittests/scans/whispers/whispers_many_vul.json index 171b95c1687..6fda4956a3d 100644 --- a/unittests/scans/whispers/whispers_many_vul.json +++ b/unittests/scans/whispers/whispers_many_vul.json @@ -1 +1,47 @@ -[{"key": "01_static_password", "value": "hardcoded0", "file": "src/config.yml", "line": 12, "rule_id": "password", "message": "Password", "severity": "CRITICAL"}, {"key": "02_static_passwords", "value": "Hardcoded1", "file": "src/config.yml", "line": 14, "rule_id": "password", "message": "Password", "severity": "CRITICAL"}, {"key": "02_static_passwords", "value": "hardCoded2", "file": "src/config.yml", "line": 15, "rule_id": "password", "message": "Password", "severity": "CRITICAL"}, {"key": "02_static_passwords", "value": "haRdcOded3", "file": "src/config.yml", "line": 16, "rule_id": "password", "message": "Password", "severity": "CRITICAL"}, {"key": "password", "value": "hardcodEd", "file": "src/config.yml", "line": 19, "rule_id": "password", "message": "Password", "severity": "CRITICAL"}] +[ + { + "key": "01_static_password", + "value": "hardcoded0", + "file": "src/config.yml", + "line": 12, + "rule_id": "password", + "message": "Password", + "severity": "CRITICAL" + }, + { + "key": "02_static_passwords", + "value": "Hardcoded1", + "file": "src/config.yml", + "line": 14, + "rule_id": "password", + "message": "Password", + "severity": "CRITICAL" + }, + { + "key": "02_static_passwords", + "value": "hardCoded2", + "file": "src/config.yml", + "line": 15, + "rule_id": "password", + "message": "Password", + "severity": "CRITICAL" + }, + { + "key": "02_static_passwords", + "value": "haRdcOded3", + "file": "src/config.yml", + "line": 16, + "rule_id": "password", + "message": "Password", + "severity": "CRITICAL" + }, + { + "key": "password", + "value": "hardcodEd", + "file": "src/config.yml", + "line": 19, + "rule_id": "password", + "message": "Password", + "severity": "CRITICAL" + } +] \ No newline at end of file diff --git a/unittests/scans/whispers/whispers_one_vul.json b/unittests/scans/whispers/whispers_one_vul.json index dca4eda44fe..2c14a1109c0 100644 --- a/unittests/scans/whispers/whispers_one_vul.json +++ b/unittests/scans/whispers/whispers_one_vul.json @@ -1 +1,11 @@ -[{"key": "pip password", "value": "hardcoded", "file": "src/pip.conf", "line": 2, "rule_id": "pip", "message": "pip.conf Password", "severity": "CRITICAL"}] +[ + { + "key": "pip password", + "value": "hardcoded", + "file": "src/pip.conf", + "line": 2, + "rule_id": "pip", + "message": "pip.conf Password", + "severity": "CRITICAL" + } +] \ No newline at end of file diff --git a/unittests/scans/whispers/whispers_one_vul_v2.2.json b/unittests/scans/whispers/whispers_one_vul_v2.2.json index 86563c46599..0dfe071437a 100644 --- a/unittests/scans/whispers/whispers_one_vul_v2.2.json +++ b/unittests/scans/whispers/whispers_one_vul_v2.2.json @@ -1 +1,11 @@ -[{"key": "pip password", "value": "hardcoded", "file": "src/pip.conf", "line": 2, "rule_id": "pip", "message": "pip.conf Password", "severity": "High"}] +[ + { + "key": "pip password", + "value": "hardcoded", + "file": "src/pip.conf", + "line": 2, + "rule_id": "pip", + "message": "pip.conf Password", + "severity": "High" + } +] \ No newline at end of file diff --git a/unittests/scans/whispers/whispers_zero_vul.json b/unittests/scans/whispers/whispers_zero_vul.json index fe51488c706..0637a088a01 100644 --- a/unittests/scans/whispers/whispers_zero_vul.json +++ b/unittests/scans/whispers/whispers_zero_vul.json @@ -1 +1 @@ -[] +[] \ No newline at end of file