regex_and_file.toml 345 B

12345678910
  1. # This is a simple gitleaks config that contains one rule which checks for AWS keys and a file check that will trigger
  2. # a leak if a .pem file is found
  3. [[rules]]
  4. description = "AWS Manager ID"
  5. regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
  6. tags = ["key", "AWS"]
  7. [Global]
  8. file = '''(.*)?pem$'''