From 6eab7601ac9e2c6dc6a33cf8b8adeccddfbe3bfc Mon Sep 17 00:00:00 2001 From: Manuel Sommer Date: Thu, 23 Jan 2025 08:27:45 +0100 Subject: [PATCH] added comment --- dojo/tools/noseyparker/parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dojo/tools/noseyparker/parser.py b/dojo/tools/noseyparker/parser.py index 1c3308875a2..05fcdab49d3 100644 --- a/dojo/tools/noseyparker/parser.py +++ b/dojo/tools/noseyparker/parser.py @@ -108,6 +108,7 @@ def version_0_22_0(self, line, test): num_elements = len(match["provenance"]) - 1 json_path = match["provenance"][num_elements] line_num = match["location"]["source_span"]["start"]["line"] + # scanned with git history if json_path.get("first_commit"): title = f"Secret(s) Found in Repository with Commit ID {json_path['first_commit']['commit_metadata']['commit_id']}" filepath = json_path["first_commit"]["blob_path"] @@ -118,6 +119,7 @@ def version_0_22_0(self, line, test): f"Commit ID: {json_path['first_commit']['commit_metadata']['commit_id']} \n" \ f"Location: {filepath} line #{line_num} \n" \ f"Line #{line_num} \n" + # scanned wihout git history else: title = "Secret(s) Found in Repository" filepath = json_path["path"]