Skip to content

Commit

Permalink
Update parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
testaccount90009 committed May 13, 2024
1 parent 67c50ad commit 49e5195
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dojo/tools/asff/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ def get_findings(self, file, test):
else:
active = False
if item.get("Resources"):
description = f"This is an AWS Security Finding\n"item.get("Description")"\nAssociated ResourceId: "item.get("Resources").get("Id")
else:
description = "This is a Security Hub Finding \n" + item.get("Description", "") + "\n"
description += "\n" + item.get("Resources", {}).get("Id", "")
else
description = item.get("Description")

finding = Finding(
Expand Down

0 comments on commit 49e5195

Please sign in to comment.