mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
remove secretgroup from default config (#1288)
* remove secretgroup from default config * update test data and AWS * leave secretgroup
This commit is contained in:
1 parent
20fcf5009f
commit
e63b657bcf
93 files changed
+146
-284
No files matched your search
@@ -12,8 +12,8 @@ func TelegramBotToken() *config.Rule {
|
||||
r := config.Rule{
|
||||
Description: "Telegram Bot API Token",
|
||||
RuleID: "telegram-bot-api-token",
|
||||
SecretGroup: 1,
|
||||
Regex: regexp.MustCompile(`(?i)(?:^|[^0-9])([0-9]{5,16}:A[a-zA-Z0-9_\-]{34})(?:$|[^a-zA-Z0-9_\-])`),
|
||||
|
||||
Regex: regexp.MustCompile(`(?i)(?:^|[^0-9])([0-9]{5,16}:A[a-zA-Z0-9_\-]{34})(?:$|[^a-zA-Z0-9_\-])`),
|
||||
Keywords: []string{
|
||||
"telegram",
|
||||
"api",
|
||||
|
||||
Reference in new issue
Block a user