:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(semgrep): exclude replay vision migrations from alert state rule (#89835)
Georges-Antoine Assie553ff766c60
diff --git a/.semgrep/rules/security/alert-state-must-go-through-state-machine.yaml b/.semgrep/rules/security/alert-state-must-go-through-state-machine.yamlindex 49bfe1230e85..0aca07e729c0 100644--- a/.semgrep/rules/security/alert-state-must-go-through-state-machine.yaml+++ b/.semgrep/rules/security/alert-state-must-go-through-state-machine.yaml@@ -58,6 +58,9 @@ rules:- '/products/replay_vision/backend/**/test_*.py'# Mutates HogFunction.enabled (delivery plumbing), not an alert.- '/products/replay_vision/backend/api/delivery.py'+ # Migrations mutate historical models from apps.get_model, so they+ # cannot call the state machine.+ - '/products/replay_vision/backend/migrations/**'- id: billing-alert-state-direct-mutationpatterns: