Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions services/scanners/results/result_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def process_https(results, domain_key, uuid, db):
if isinstance(hsts, str):
hsts = hsts.lower()

if hsts == "hsts max age too short":
if hsts == "hsts max age too short":
negative_tags.append("https10")

elif hsts == "no hsts":
Expand Down Expand Up @@ -182,7 +182,7 @@ def process_https(results, domain_key, uuid, db):
logging.info("HTTPS Scan inserted into database")

else:
publish_results(httpsResults, "https", uuid)
publish_results({"domainKey": domain_key, "results": httpsResults}, "https", uuid)
logging.info("HTTPS Scan published to redis")


Expand Down Expand Up @@ -304,7 +304,7 @@ def process_ssl(results, guidance, domain_key, uuid, db):
logging.info("SSL Scan inserted into database")

else:
publish_results(sslResults, "ssl", uuid)
publish_results({"domainKey": domain_key, "results": sslResults}, "ssl", uuid)
logging.info("SSL Scan published to redis")


Expand Down Expand Up @@ -890,9 +890,9 @@ def process_dns(results, domain_key, uuid, db):
logging.info("DNS Scans inserted into database")

else:
publish_results(dmarcResults, "dmarc", uuid)
publish_results(spfResults, "spf", uuid)
publish_results(dkimResults, "dkim", uuid)
publish_results({"domainKey": domain_key, "results": dmarcResults}, "dmarc", uuid)
publish_results({"domainKey": domain_key, "results": spfResults}, "spf", uuid)
publish_results({"domainKey": domain_key, "results": dkimResults}, "dkim", uuid)
logging.info("DNS Scans published to redis")


Expand Down