heroku.go 484 B

12345678910111213141516171819202122
  1. package rules
  2. import (
  3. "github.com/zricethezav/gitleaks/v8/config"
  4. )
  5. func Heroku() *config.Rule {
  6. // define rule
  7. r := config.Rule{
  8. Description: "Heroku API Key",
  9. RuleID: "heroku-api-key",
  10. Regex: generateSemiGenericRegex([]string{"heroku"}, hex8_4_4_4_12()),
  11. SecretGroup: 1,
  12. Keywords: []string{"heroku"},
  13. }
  14. // validate
  15. tps := []string{
  16. `const HEROKU_KEY = "12345678-ABCD-ABCD-ABCD-1234567890AB"`, // gitleaks:allow
  17. }
  18. return validate(r, tps, nil)
  19. }