mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 21:44:23 +01:00
Enhance Secret Descriptions (#1300)
* Enhance secret descriptions in gitleaks.toml * adjust the rule configuration descriptions * missing spaces in gitleaks.toml
This commit is contained in:
1 parent
ca7aa14542
commit
8de8938ad4
105 files changed
+332
-332
No files matched your search
@@ -9,7 +9,7 @@ import (
|
||||
func PrivateKey() *config.Rule {
|
||||
// define rule
|
||||
r := config.Rule{
|
||||
Description: "Private Key",
|
||||
Description: "Identified a Private Key, which may compromise cryptographic security and sensitive data encryption.",
|
||||
RuleID: "private-key",
|
||||
Regex: regexp.MustCompile(`(?i)-----BEGIN[ A-Z0-9_-]{0,100}PRIVATE KEY( BLOCK)?-----[\s\S-]*KEY( BLOCK)?----`),
|
||||
Keywords: []string{"-----BEGIN"},
|
||||
|
||||
Reference in new issue
Block a user