archives.toml 518 B

123456789101112131415161718192021
  1. title = "gitleaks config"
  2. # https://learnxinyminutes.com/docs/toml/ for toml reference
  3. [[rules]]
  4. id = "aws-access-key"
  5. description = "AWS Access Key"
  6. regex = '''(?:A3T[A-Z0-9]|AKIA|ASIA|ABIA|ACCA)[A-Z0-9]{16}'''
  7. tags = ["key", "AWS"]
  8. # Here to confirm that allowlists work in archives
  9. [[rules]]
  10. id = 'password'
  11. description = "Find the DB password in .env.prod"
  12. path = '''\.env\.prod$'''
  13. regex = '''(?i)password=([^\s]+)'''
  14. # Now ignore it to confirm allowlists work
  15. [[allowlists]]
  16. paths = [
  17. '''\.env\.prod$''',
  18. ]