litellm/.github/semgrep/rules
Yassin Kortam b0e389503f
chore: move config and docs off the repo root (#50966)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-11 18:29:35 -08:00
..
python chore: move config and docs off the repo root (#50966) 2026-11-11 18:29:35 -08:00
security chore: move config and docs off the repo root (#50966) 2026-11-11 18:29:35 -08:00
README.md chore: move config and docs off the repo root (#50966) 2026-11-11 18:29:35 -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 .github/semgrep/rules . --error

Run with registry + custom rules:

semgrep scan --config auto --config .github/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.