Skip to content

Commit cb1a20e

Browse files
authored
Merge pull request #151 from NHSDigital/add-patterns-to-git-secret-rule-scan
Add rules to git secrets
2 parents 0972e54 + 24b8647 commit cb1a20e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nhsd-git-secrets/nhsd-rules-linux-mac.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ dynamodb\.[a-z]{2}-[a-z-]*-[1,2,3]\.amazonaws\.com
1717
[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}
1818
[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}
1919
(CLIENT|client|Client)(_|\s)(SECRET|secret|Secret)\s*(:|=>|=)\s*("|')?(\{)?[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\})?("|')?
20+
password\s*(=|:)\s*.+
21+
token\s*(=|:)\s*.+

0 commit comments

Comments
 (0)