Skip to content

: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.

ci: make the bundle-size runner configurable and run Semgrep in PostHog-owned repos (#121163)

Georges-Antoine Assi725613b049e5
diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml
index 01c537d147c0..fc9078d2249a 100644
--- a/.github/workflows/ci-frontend.yml
+++ b/.github/workflows/ci-frontend.yml
@@ -547,8 +547,8 @@ jobs:
# Not on the hourly cron: the vs-base comparison build is pull_request-only,
# so a cron run measures an absolute size with nothing to compare it against.
if: needs.changes.outputs.frontend_code == 'true' && github.event_name != 'schedule'
- runs-on: ubuntu-24.04
- timeout-minutes: 10
+ runs-on: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) && vars.FRONTEND_CHECKS_RUNNER || 'ubuntu-24.04' }}
+ timeout-minutes: 15
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
diff --git a/.github/workflows/ci-security.yaml b/.github/workflows/ci-security.yaml
index 42e35fe577e7..f6f162e7c640 100644
--- a/.github/workflows/ci-security.yaml
+++ b/.github/workflows/ci-security.yaml
@@ -20,7 +20,7 @@ jobs:
changes:
runs-on: ubuntu-24.04
timeout-minutes: 5
- if: github.repository == 'PostHog/posthog'
+ if: github.repository_owner == 'PostHog'
name: Determine need to run Semgrep checks
permissions:
contents: read