4
0

allowlist_rule_extend_default.toml 257 B

1234567891011
  1. # https://github.com/gitleaks/gitleaks/issues/1844
  2. [extend]
  3. useDefault = true
  4. [[rules]]
  5. id = "generic-api-key"
  6. [[rules.allowlists]]
  7. description = "Exclude a specific file from generic-api-key rule"
  8. paths = [
  9. '''^path/to/your/problematic/file\.js$'''
  10. ]