From 093465f737afc68c9f3ce08949a58fe8da62a17c Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Tue, 18 Dec 2018 14:23:44 -0800 Subject: [PATCH] blacklist pgp private key header --- detect_secrets/plugins/private_key.py | 1 + 1 file changed, 1 insertion(+) diff --git a/detect_secrets/plugins/private_key.py b/detect_secrets/plugins/private_key.py index a4e709989..848aa7865 100644 --- a/detect_secrets/plugins/private_key.py +++ b/detect_secrets/plugins/private_key.py @@ -47,5 +47,6 @@ class PrivateKeyDetector(RegexBasedDetector): r'BEGIN PRIVATE KEY', r'PuTTY-User-Key-File-2', r'BEGIN SSH2 ENCRYPTED PRIVATE KEY', + r'BEGIN PGP PRIVATE KEY BLOCK', ) ]