Skip to content

Commit

Permalink
fix cloudcheck bug
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 20, 2024
1 parent 87b9f75 commit 0fd7102
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bbot/modules/internal/cloudcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ async def handle_event(self, event, **kwargs):
event.add_tag(f"{provider_type}-cname")

found = set()
str_hosts_to_check = [str(host) for host in hosts_to_check]
# look for cloud assets in hosts, http responses
# loop through each provider
for provider in self.helpers.cloud.providers.values():
Expand All @@ -68,7 +69,7 @@ async def handle_event(self, event, **kwargs):
if event.type == "HTTP_RESPONSE":
matches = await self.helpers.re.findall(sig, event.data.get("body", ""))
elif event.type.startswith("DNS_NAME"):
for host in hosts_to_check:
for host in str_hosts_to_check:
match = sig.match(host)
if match:
matches.append(match.groups())
Expand Down

0 comments on commit 0fd7102

Please sign in to comment.