Skip to content

Commit

Permalink
Trufflehog now accepts postman workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
domwhewell-sage committed Oct 1, 2024
1 parent 3b52525 commit 4eb472e
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 4eb472e

Please sign in to comment.