generic_with_py_path.toml 740 B

123456789101112131415161718192021222324252627282930313233343536
  1. title = "gitleaks config"
  2. [[rules]]
  3. description = "Generic API Key"
  4. id = "generic-api-key"
  5. regex = '''(?i)((key|api|token|secret|password)[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9a-zA-Z\-_=]{8,64})['\"]'''
  6. path = '''.py'''
  7. entropy = 3.7
  8. secretGroup = 4
  9. [allowlist]
  10. description = "global allow lists"
  11. regexes = [
  12. '''219-09-9999''',
  13. '''078-05-1120''',
  14. '''(9[0-9]{2}|666)-\d{2}-\d{4}''',
  15. '''process''',
  16. '''getenv''',
  17. '''\.env''',
  18. '''env\(''',
  19. '''env\.''',
  20. '''setting''',
  21. '''load''',
  22. '''token''',
  23. '''password''',
  24. '''secret''',
  25. '''api\_key''',
  26. '''apikey''',
  27. '''api\-key''',
  28. ]
  29. paths = [
  30. '''gitleaks.toml''',
  31. '''(.*?)(jpg|gif|doc|pdf|bin|svg|socket)$''',
  32. '''(go.mod|go.sum)$'''
  33. ]