mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
Co-authored-by: Craig Smith <5344211-craigmsmith@users.noreply.gitlab.com>
24 lines
516 B
Go
24 lines
516 B
Go
package rules
|
|
|
|
import (
|
|
"github.com/zricethezav/gitleaks/v8/cmd/generate/secrets"
|
|
"github.com/zricethezav/gitleaks/v8/config"
|
|
)
|
|
|
|
func Facebook() *config.Rule {
|
|
// define rule
|
|
r := config.Rule{
|
|
Description: "Facebook",
|
|
RuleID: "facebook",
|
|
Regex: generateSemiGenericRegex([]string{"facebook"}, hex("32")),
|
|
SecretGroup: 1,
|
|
Keywords: []string{"facebook"},
|
|
}
|
|
|
|
// validate
|
|
tps := []string{
|
|
generateSampleSecret("facebook", secrets.NewSecret(hex("32"))),
|
|
}
|
|
return validate(r, tps, nil)
|
|
}
|