Skip to content

Commit

Permalink
↪️ Merge pull request Yelp#283 from 0atman/patch-1
Browse files Browse the repository at this point in the history
Not every company has a #security channel in slack/irc
  • Loading branch information
KevinHock authored Mar 11, 2020
2 parents 2b92ed6 + fd6a4ab commit 79dad49
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions detect_secrets/pre_commit_hook.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import absolute_import
from __future__ import unicode_literals

import os
import subprocess
import sys
import textwrap
Expand Down Expand Up @@ -205,9 +206,15 @@ def _print_secrets_found(secrets):


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

Expand Down

0 comments on commit 79dad49

Please sign in to comment.