mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
A first attempt adding hooks.slack.com/triggers/ (#1792)
As described in issue 1791, the hooks.slack.com/triggers should perhaps also be detected. Reference https://slack.com/help/articles/360041352714-Build-a-workflow--Create-a-workflow-that-starts-outside-of-Slack Feel free to use, change any part of this proposed fix, or to simply discard it. (ps. I did a minor typo in a comment in issue 1791, proposing this change but that was corrected here. ds.)
This commit is contained in:
1 parent
198e41051e
commit
9708e65c25
2 files changed
+3
-2
No files matched your search
@@ -2947,7 +2947,7 @@ keywords = [
|
||||
[[rules]]
|
||||
id = "slack-webhook-url"
|
||||
description = "Discovered a Slack Webhook, which could lead to unauthorized message posting and data leakage in Slack channels."
|
||||
regex = '''(?:https?://)?hooks.slack.com/(?:services|workflows)/[A-Za-z0-9+/]{43,46}'''
|
||||
regex = '''(?:https?://)?hooks.slack.com/(?:services|workflows|triggers)/[A-Za-z0-9+/]{43,56}'''
|
||||
keywords = ["hooks.slack.com"]
|
||||
|
||||
[[rules]]
|
||||
|
||||
Reference in new issue
Block a user