fastly.go 484 B

12345678910111213141516171819202122
  1. package rules
  2. import (
  3. "github.com/zricethezav/gitleaks/v8/config"
  4. )
  5. func FastlyAPIToken() *config.Rule {
  6. // define rule
  7. r := config.Rule{
  8. Description: "Fastly API key",
  9. RuleID: "fastly-api-token",
  10. Regex: generateSemiGenericRegex([]string{"fastly"}, extendedAlphaNumeric32),
  11. SecretGroup: 1,
  12. Keywords: []string{"fastly"},
  13. }
  14. // validate
  15. tps := []string{
  16. generateSampleSecret("fastly", sampleExtendedAlphaNumeric32Token),
  17. }
  18. return validate(r, tps)
  19. }