mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
chore: remove unnecessary capture groups (#1460)
This commit is contained in:
1 parent
80bd1779e3
commit
b4009bfba4
11 files changed
+28
-30
No files matched your search
@@ -60,7 +60,7 @@ func GitHubApp() *config.Rule {
|
||||
r := config.Rule{
|
||||
Description: "Identified a GitHub App Token, which may compromise GitHub application integrations and source code security.",
|
||||
RuleID: "github-app-token",
|
||||
Regex: regexp.MustCompile(`(ghu|ghs)_[0-9a-zA-Z]{36}`),
|
||||
Regex: regexp.MustCompile(`(?:ghu|ghs)_[0-9a-zA-Z]{36}`),
|
||||
Keywords: []string{"ghu_", "ghs_"},
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user