frameio.go 465 B

1234567891011121314151617181920212223
  1. package rules
  2. import (
  3. "regexp"
  4. "github.com/zricethezav/gitleaks/v8/config"
  5. )
  6. func FrameIO() *config.Rule {
  7. // define rule
  8. r := config.Rule{
  9. Description: "Frame.io API token",
  10. RuleID: "frameio-api-token",
  11. Regex: regexp.MustCompile(`fio-u-(?i)[a-z0-9\-_=]{64}`),
  12. Keywords: []string{"fio-u-"},
  13. }
  14. // validate
  15. tps := []string{
  16. generateSampleSecret("frameio", "fio-u-"+sampleExtendedAlphaNumeric64Token),
  17. }
  18. return validate(r, tps)
  19. }