Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer committed Jan 23, 2025
1 parent 1636cdd commit 6eab760
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dojo/tools/noseyparker/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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"]
Expand Down

0 comments on commit 6eab760

Please sign in to comment.