: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
fix(ci): stop semgrep-general timing out on every PR (#78225)
Georges-Antoine Assidd44db55df77
diff --git a/.github/workflows/ci-security.yaml b/.github/workflows/ci-security.yamlindex 9cbe9fd1b036..b5c1e7ee8c8a 100644--- a/.github/workflows/ci-security.yaml+++ b/.github/workflows/ci-security.yaml@@ -31,6 +31,7 @@ jobs:rust: ${{ steps.oversized.outputs.force_all || steps.filter.outputs.rust || 'true' }}js: ${{ steps.oversized.outputs.force_all || steps.filter.outputs.js || 'true' }}products-frontend: ${{ steps.oversized.outputs.force_all || steps.filter.outputs.products-frontend || 'true' }}+ general: ${{ steps.oversized.outputs.force_all || steps.filter.outputs.general || 'true' }}devex: ${{ steps.oversized.outputs.force_all || steps.filter.outputs.devex || 'true' }}test-rules: ${{ steps.oversized.outputs.force_all || steps.filter.outputs.test-rules || 'true' }}desktop: ${{ steps.oversized.outputs.force_all || steps.filter.outputs.desktop || 'true' }}@@ -85,6 +86,22 @@ jobs:- 'products/**'- '.semgrep/rules/security/prefer-codegen-api.yaml'- '.github/workflows/ci-security.yaml'+ # semgrep-general scans whatever the language-specific jobs+ # don't. Keep these excludes aligned with its --exclude list.+ general:+ - '**'+ - '!cli/**'+ - '!common/**'+ - '!ee/**'+ - '!frontend/**'+ - '!livestream/**'+ - '!nodejs/**'+ - '!posthog/**'+ - '!products/**'+ - '!rust/**'+ - '!.semgrep/**'+ - '!docs/**'+ - '!services/**'# Keep these paths aligned with semgrep-devex's scan targets.devex:- 'bin/**'@@ -308,8 +325,12 @@ jobs:# scans GitHub Actions and other repo-wide configsemgrep-general:+ needs: changes+ if: needs.changes.outputs.general == 'true'runs-on: ubuntu-latest- timeout-minutes: 20+ # The scan itself sits around 12 minutes, so 20 left too little headroom+ # for a slow runner and the job was tripping the timeout.+ timeout-minutes: 30env:DOCKERHUB_USERNAME: ${{ vars.DOCKERHUB_USER }}