Skip to content

Commit 16f6625

Browse files
authored
Merge pull request #430 from pablosantiagolopez/feature/keyword-denylist
New keywords in the denylist
2 parents 72f44d8 + 8a509d6 commit 16f6625

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

detect_secrets/plugins/keyword.py

+15-6
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,24 @@
4040

4141
# Note: All values here should be lowercase
4242
DENYLIST = (
43-
'apikey',
44-
'api_key',
45-
'aws_secret_access_key',
46-
'db_pass',
43+
'api_?key',
44+
'auth_?key',
45+
'service_?key',
46+
'account_?key',
47+
'db_?key',
48+
'database_?key',
49+
'priv_?key',
50+
'private_?key',
51+
'client_?key',
52+
'db_?pass',
53+
'database_?pass',
54+
'key_?pass',
4755
'password',
4856
'passwd',
49-
'private_key',
57+
'pwd',
5058
'secret',
51-
'secrete',
59+
'contraseña',
60+
'contrasena',
5261
)
5362
# Includes ], ', " as closing
5463
CLOSING = r'[]\'"]{0,2}'

0 commit comments

Comments
 (0)