You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cloud Registry runs project-specific static analysis rules that FOCA doesn't: ast-grep rules (.ast-grep/, sgconfig.yml) and semgrep rules (.semgrep/, e.g., flask-debug-enabled, JWT decoding without verification), wired into pre-commit and the "Static code analysis" CI job. FOCA, which implements the security-relevant code (auth, access control, URL checks) that apps rely on, has only the shared ruff and mypy setup.
Expected
Bring FOCA up to Cloud Registry's level: the same semgrep rule set (plus rules that fit a framework, e.g., no jwt.decode without verification and allowed algorithms, no eval/exec, no unsafe YAML loading, no verify=False in requests), and ast-grep rules where they make sense for FOCA (e.g., the ones Cloud Registry has for logging and exceptions), each with rule tests.
Wired into .pre-commit-config.yaml and the CI lint job, versions pinned in one place and updated by Dependabot (as ruff and mypy since fix: pre-release review low findings #388).
Findings on current dev fixed, or suppressed inline with a justification.
Rules shared with Cloud Registry kept identical, so the template stays in sync.
Activity
uniqueg commentedon Oct 23, 2026
Done in #416.