mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
22 lines
424 B
Go
22 lines
424 B
Go
package rules
|
|
|
|
import (
|
|
"github.com/zricethezav/gitleaks/v8/config"
|
|
)
|
|
|
|
func Facebook() *config.Rule {
|
|
// define rule
|
|
r := config.Rule{
|
|
Description: "facebook",
|
|
RuleID: "facebook",
|
|
Regex: generateSemiGenericRegex([]string{"facebook"},
|
|
hex32),
|
|
SecretGroup: 1,
|
|
Keywords: []string{"facebook"},
|
|
}
|
|
|
|
// validate
|
|
tps := []string{"facebookToken := \"" + sampleHex32Token + "\""}
|
|
return validate(r, tps)
|
|
}
|