.gitleaks.toml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. title = "MiniMax Code source and history scanning"
  2. [extend]
  3. useDefault = true
  4. [[rules]]
  5. id = "generic-api-key"
  6. [[rules.allowlists]]
  7. description = "Permission translation key, not a credential"
  8. condition = "AND"
  9. paths = ['''(^|/)packages/agent-modules/permission/src/tools/bash-checker\.ts$''']
  10. regexTarget = "match"
  11. regexes = ['''^labelKey: 'permission\.scope\.byArgvPrefix2'$''']
  12. [[rules.allowlists]]
  13. description = "Documented keyboard shortcut"
  14. condition = "AND"
  15. paths = ['''(^|/)(packages/local-runtime|dist)/assets/skills/cu-desktop/SKILL\.md$''']
  16. regexTarget = "match"
  17. regexes = ['''^desktop_key combo="ctrl\+shift\+Escape"$''']
  18. [[rules.allowlists]]
  19. description = "Pagination example ends with explicit xxxx placeholder"
  20. condition = "AND"
  21. paths = ['''(^|/)(packages/local-runtime|dist)/assets/skills/lark-tools/cli-skills/lark-im/references/lark-im-reactions\.md$''']
  22. regexTarget = "match"
  23. regexes = ['''^page_token": "YhljsPiGfUgnVAg9urvRFd-BvSqRLxxxx"$''']
  24. [[rules.allowlists]]
  25. description = "PDF form field identifier, not an API key"
  26. condition = "AND"
  27. paths = ['''(^|/)(packages/local-runtime|dist)/assets/skills/pdf/templates/form-fill-acroform/cases/italy-schengen-visa-(zhangwei|example)/field_values\.case\.json$''']
  28. regexTarget = "match"
  29. regexes = ['''^key": "p1-place-of-birth"$''']
  30. [[rules.allowlists]]
  31. description = "TUI next-prompt keyboard shortcut"
  32. condition = "AND"
  33. paths = ['''(^|/)packages/tui/src/tui/engine/keybindings\.ts$''']
  34. regexTarget = "match"
  35. regexes = ['''^defaultKeys: "ctrl\+shift\+down"$''']
  36. [[rules.allowlists]]
  37. description = "Bundled TUI shortcut and permission translation key"
  38. condition = "AND"
  39. paths = ['''(^|/)dist/chunks/(chunk|launcher)-[A-Z0-9]+\.js$''']
  40. regexTarget = "match"
  41. regexes = ['''^defaultKeys: "ctrl\+shift\+down"$''', '''^labelKey: "permission\.scope\.byArgvPrefix2"$''']
  42. [[rules.allowlists]]
  43. description = "node-forge PKCS12 function alias, no key material"
  44. condition = "AND"
  45. paths = ['''(^|/)dist/chunks/chunk-[A-Z0-9]+\.js$''']
  46. regexTarget = "match"
  47. regexes = ['''^[A-Za-z_$][A-Za-z0-9_$]*\.generateKey = [A-Za-z_$][A-Za-z0-9_$]*\.pbe\.generatePkcs12Key;?$''']
  48. [[rules.allowlists]]
  49. description = "Exact synthetic privacy regression marker, including historical commits"
  50. condition = "AND"
  51. paths = ['''(^|/)packages/local-runtime/test/unit/error-reporting-privacy\.test\.ts$''']
  52. regexTarget = "match"
  53. regexes = ['''^SECRET = 'SYNTHETIC_PRIVATE_4cd7'$''']