gitleaks.toml 938 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. title = "gitleaks config"
  2. [[regexes]]
  3. description = "AWS"
  4. regex = '''AKIA[0-9A-Z]{16}'''
  5. [[regexes]]
  6. description = "RKCS8"
  7. regex = '''-----BEGIN PRIVATE KEY-----'''
  8. [[regexes]]
  9. description = "RSA"
  10. regex = '''-----BEGIN RSA PRIVATE KEY-----'''
  11. [[regexes]]
  12. description = "Github"
  13. regex = '''(?i)github.*['\"][0-9a-zA-Z]{35,40}['\"]'''
  14. [[regexes]]
  15. description = "SSH"
  16. regex = '''-----BEGIN OPENSSH PRIVATE KEY-----'''
  17. [[regexes]]
  18. description = "Facebook"
  19. regex = '''(?i)facebook.*['\"][0-9a-f]{32}['\"]'''
  20. [[regexes]]
  21. description = "Twitter"
  22. regex = '''(?i)twitter.*['\"][0-9a-zA-Z]{35,44}['\"]'''
  23. [[regexes]]
  24. description = "PGP"
  25. regex = '''-----BEGIN PGP PRIVATE KEY BLOCK-----'''
  26. [[regexes]]
  27. description = "Slack token"
  28. regex = '''xox[baprs]-.*'''
  29. [[regexes]]
  30. description = "Strip API Key"
  31. regex = '''(?i)(sk|pk)_(test|live)_[0-9a-zA-Z]{10,32}'''
  32. [whitelist]
  33. regexes = [
  34. # "AKIA.*EXAMPLE",
  35. ]
  36. files = [
  37. "(.*?)(jpg|gif|doc|pdf|bin)$"
  38. ]