mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
* Enhance secret descriptions in gitleaks.toml * adjust the rule configuration descriptions * missing spaces in gitleaks.toml
25 lines
619 B
Go
25 lines
619 B
Go
package rules
|
|
|
|
import (
|
|
"regexp"
|
|
|
|
"github.com/zricethezav/gitleaks/v8/cmd/generate/secrets"
|
|
"github.com/zricethezav/gitleaks/v8/config"
|
|
)
|
|
|
|
func FrameIO() *config.Rule {
|
|
// define rule
|
|
r := config.Rule{
|
|
Description: "Found a Frame.io API token, potentially compromising video collaboration and project management.",
|
|
RuleID: "frameio-api-token",
|
|
Regex: regexp.MustCompile(`fio-u-(?i)[a-z0-9\-_=]{64}`),
|
|
Keywords: []string{"fio-u-"},
|
|
}
|
|
|
|
// validate
|
|
tps := []string{
|
|
generateSampleSecret("frameio", "fio-u-"+secrets.NewSecret(alphaNumericExtended("64"))),
|
|
}
|
|
return validate(r, tps, nil)
|
|
}
|