Skip to content

Commit

Permalink
🎓 [Keyword Plugin] Comment FP directory heuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinHock committed Aug 23, 2019
1 parent a53d12e commit 5de43e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions detect_secrets/plugins/keyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ def probably_false_positive(lowered_secret, filetype):
'forgot',
)
) or lowered_secret in FALSE_POSITIVES
# For e.g. private_key "some/dir/that/is/not/a/secret";
or lowered_secret.count('/') >= 3
# For e.g. "secret": "{secret}"
or (
Expand Down

0 comments on commit 5de43e2

Please sign in to comment.