Explorar el Código

Add support for PKCS8 key

Eugene Piven hace 6 años
padre
commit
36c6ddaf86
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      config/default.go

+ 1 - 1
config/default.go

@@ -63,7 +63,7 @@ title = "gitleaks config"
 
 [[rules]]
 	description = "Asymmetric Private Key"
-	regex = '''-----BEGIN (EC|PGP|DSA|RSA|OPENSSH) PRIVATE KEY( BLOCK)?-----'''
+	regex = '''-----BEGIN ((EC|PGP|DSA|RSA|OPENSSH) )?PRIVATE KEY( BLOCK)?-----'''
 	tags = ["key", "AsymmetricPrivateKey"]
 
 [[rules]]