Skip to content

Commit 79dad49

Browse files
authored
↪️ Merge pull request #283 from 0atman/patch-1
Not every company has a #security channel in slack/irc
2 parents 2b92ed6 + fd6a4ab commit 79dad49

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Diff for: detect_secrets/pre_commit_hook.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import absolute_import
22
from __future__ import unicode_literals
33

4+
import os
45
import subprocess
56
import sys
67
import textwrap
@@ -205,9 +206,15 @@ def _print_secrets_found(secrets):
205206

206207

207208
def _print_mitigation_suggestions():
209+
security_team = os.environ.get(
210+
'DETECT_SECRETS_SECURITY_TEAM',
211+
'in #security',
212+
)
208213
suggestions = [
209-
'For information about putting your secrets in a safer place, please ask in #security',
210-
'Mark false positives with an inline `pragma: allowlist secret` comment',
214+
'For information about putting your secrets in a safer place, ' +
215+
'please ask ' + security_team,
216+
'Mark false positives with an inline ' +
217+
'`pragma: allowlist secret` comment',
211218
'Commit with `--no-verify` if this is a one-time false positive',
212219
]
213220

0 commit comments

Comments
 (0)