mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 04:04:25 +01:00
Adding DSA key check to regex list
This commit is contained in:
1 parent
2d27ce7cdf
commit
041c11d9fc
1 file changed
+1
@@ -51,6 +51,7 @@ func init() {
|
||||
regexes = map[string]*regexp.Regexp{
|
||||
"PKCS8": regexp.MustCompile("-----BEGIN PRIVATE KEY-----"),
|
||||
"RSA": regexp.MustCompile("-----BEGIN RSA PRIVATE KEY-----"),
|
||||
"DSA": regexp.MustCompile("-----BEGIN DSA PRIVATE KEY-----"),
|
||||
"SSH": regexp.MustCompile("-----BEGIN OPENSSH PRIVATE KEY-----"),
|
||||
"Facebook": regexp.MustCompile("(?i)facebook.*['\"][0-9a-f]{32}['\"]"),
|
||||
"Twitter": regexp.MustCompile("(?i)twitter.*['\"][0-9a-zA-Z]{35,44}['\"]"),
|
||||
|
||||
Reference in new issue
Block a user