Skip to content

Commit 40f9f37

Browse files
committed
ODSC-42791. Add pre-commit hooks for ocids, copyright and secrets
- added pswd to list of strting lines for secrets
1 parent e34c10d commit 40f9f37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitleaks.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ useDefault = true
4242
description = "Generic secret"
4343
id = "generic-secret"
4444
path = '''notebook_examples'''
45-
regex = '''(?i)((key|api|token|secret|passwd|password|psw|pass)[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9a-zA-Z!@#$%^&*<>\\\-_.=]{3,100})['\"]'''
45+
regex = '''(?i)((key|api|token|secret|passwd|password|psw|pass|pswd)[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9a-zA-Z!@#$%^&*<>\\\-_.=]{3,100})['\"]'''
4646
entropy = 0
4747
secretGroup = 4
4848
keywords = [
49-
"key","api","token","secret","passwd","password", "psw", "pass"
49+
"key","api","token","secret","passwd","password", "psw", "pass", "pswd"
5050
]

0 commit comments

Comments
 (0)