Skip to content

Commit

Permalink
add kink to scan finish message
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Steen committed Oct 4, 2018
1 parent 9c015a5 commit 66d7009
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions helpers/slack.py
Expand Up @@ -309,11 +309,13 @@ def worker(scan_tasker_queue, slack_client, log):
duration = time.strptime(scan['duration'], 'PT%S.%fS').tm_min
message = "<@{}> Scan ID: {} finished for `{}` at {} UTC\n"
message += "*Scan Duration*: {} minutes\n {}\n"
message += "Report is being generated on the console "
message += "Scan details available here: https://{}/scan.jsp?scanid={}"
message = message.format(item['user'], scan_id, ', '.join(item['target_list']),
time.asctime(),
duration,
scan['vulnerabilities'])
scan['vulnerabilities'],
SECRETS['insightvm']['host'],
scan_id)
if scan['vulnerabilities']['total'] == 0:
message += helpers.get_gif()
if 'false_positive' in item:
Expand Down

0 comments on commit 66d7009

Please sign in to comment.