Exclude Slack webhook sample URL
Is your feature request related to a problem? Please describe.
Semgrep returns a false positive for the Slack webhook sample URL https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX, which is used in Slack documentation.
Describe the solution you'd like
Modify the regex in generic.secrets.security.detected-slack-webhook.detected-slack-webhook to exclude the sample URL https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX.
Describe alternatives you've considered Submit an upstream PR to update https://github.com/dxa4481/truffleHogRegexes/blob/master/truffleHogRegexes/regexes.json#L33, but that repo hasn't been updated since 2021.
Use case Documentation, such as the following, in repos scanned by Semgrep:
Enter your Slack webhook URL, which is in the format
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX.
Additional context None
this is really about the rule rather than the engine but I've flagged it to the secrets team!
@dbarlett I've moved this to the correct repo -- we would welcome a PR to fix the rule here!
(https://github.com/semgrep/semgrep-rules/blob/release/generic/secrets/security/detected-slack-webhook.yaml)
Thanks @ievans. Is your CLA available for review before submitting a PR?
yes https://cla-assistant.io/semgrep/semgrep-rules