Skip to content

Commit 2f21d3d

Browse files
committed
🔭 [Keyword Plugin] Add more to FALSE_POSITIVES
- `>` for Ruby e.g. `:some_password => params[some_thing]` - `"dummy`, `'dummy` `dummy_value` for e.g. `"dummy value"` - `::` (from an internal test case) - `null.*'` and `null.*"` (from an internal test case)
1 parent 6d0ee12 commit 2f21d3d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: detect_secrets/plugins/keyword.py

+7
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,31 @@
5151
'""):',
5252
'"\'',
5353
'")',
54+
'"dummy',
5455
'#pass',
5556
'#password',
5657
'$(shell',
5758
"'\"",
5859
"''",
5960
"''):",
6061
"')",
62+
"'dummy",
6163
"'this",
6264
'(nsstring',
6365
'-default}',
66+
'::',
6467
'<a',
6568
'<aws_secret_access_key>',
6669
'<input',
6770
'<password>',
71+
'>',
6872
'=',
6973
'\\"$(shell',
7074
'\\k.*"',
7175
"\\k.*'",
7276
'`grep',
7377
'dummy_secret',
78+
'dummy_value',
7479
'false',
7580
'false):',
7681
'false,',
@@ -81,6 +86,8 @@
8186
'not',
8287
'null',
8388
'null,',
89+
'null.*"',
90+
"null.*'",
8491
'null;',
8592
'password',
8693
'password)',

0 commit comments

Comments
 (0)