Skip to content

Commit

Permalink
Merge pull request #1811 from domwhewell-sage/trufflehog-scan_postman
Browse files Browse the repository at this point in the history
Enhancement: Trufflehog accept postman workspaces
  • Loading branch information
TheTechromancer authored Oct 1, 2024
2 parents 3b52525 + 4eb472e commit aadbbe9
Show file tree
Hide file tree
Showing 2 changed files with 320 additions and 11 deletions.
5 changes: 5 additions & 0 deletions bbot/modules/trufflehog.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ async def handle_event(self, event):
module = "git"
elif "docker" in event.tags:
module = "docker"
elif "postman" in event.tags:
module = "postman"
else:
module = "filesystem"
if event.type == "CODE_REPOSITORY":
Expand Down Expand Up @@ -164,6 +166,9 @@ async def execute_trufflehog(self, module, path):
elif module == "docker":
command.append("docker")
command.append("--image=file://" + path)
elif module == "postman":
command.append("postman")
command.append("--workspace-paths=" + path)
elif module == "filesystem":
command.append("filesystem")
command.append(path)
Expand Down
Loading

0 comments on commit aadbbe9

Please sign in to comment.