mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
Feature/add sidekiq rules (#933)
* Add sidekiq rules * Added two new rules for sidekiq * Other: Add keywords to square rules per Zach's instructions * Validate now works, but test suite is failing * Tests are now passing * Add Sidekiq Rules: Ran go fmt * * After resolving conflicts, had to rerun the rule generator to add back the semicolon char * After running tests, had to fix one line in testdata/expected/report/sarif_simple.sarif * * Added keywords to simple.toml for sidekiq-sensitive-url so that the rule matches what is in gitleaks.toml Co-authored-by: Andrew Weiner <aweiner@frontrush.com>
This commit is contained in:
1 parent
afc89f91c0
commit
cd52267113
8 files changed
+284
-104
No files matched your search
@@ -11,6 +11,7 @@ func SquareAccessToken() *config.Rule {
|
||||
RuleID: "square-access-token",
|
||||
Description: "Square Access Token",
|
||||
Regex: generateUniqueTokenRegex(`sq0atp-[0-9A-Za-z\-_]{22}`),
|
||||
Keywords: []string{"sq0atp-"},
|
||||
}
|
||||
|
||||
// validate
|
||||
@@ -26,6 +27,7 @@ func SquareSecret() *config.Rule {
|
||||
RuleID: "square-secret",
|
||||
Description: "Square Secret",
|
||||
Regex: generateUniqueTokenRegex(`sq0csp-[0-9A-Za-z\\-_]{43}`),
|
||||
Keywords: []string{"sq0csp-"},
|
||||
}
|
||||
|
||||
// validate
|
||||
|
||||
Reference in new issue
Block a user