litellm/.semgrep/rules
2026-03-25 11:57:43 -07:00
..
python Merge branch 'main' into litellm_oss_staging_02_11_2026 2026-02-12 20:04:46 +05:30
security security: remove .claude/settings.json and add semgrep rule to prevent re-adding 2026-03-25 11:57:43 -07:00
README.md chore: improve Semgrep rules documentation and organization (#20978) 2026-02-11 09:39:44 -08:00

Custom Semgrep rules for LiteLLM

Add custom rule YAML files here. Semgrep loads all .yml/.yaml files under this directory.

Run only custom rules (CI / fail on findings):

semgrep scan --config .semgrep/rules . --error

Run with registry + custom rules:

semgrep scan --config auto --config .semgrep/rules .

Layout:

  • python/ Python-specific rules (security, patterns)
  • Add more subdirs as needed (e.g. generic/ for language-agnostic rules)

See Semgrep rule syntax.