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.

fix(ci): Scope concurrency to PRs only (#60298)

mendral-app[bot]c9a320b5adf7
diff --git a/.github/workflows/ci-security.yaml b/.github/workflows/ci-security.yaml
index df5c940f59d0..734fb1ee3092 100644
--- a/.github/workflows/ci-security.yaml
+++ b/.github/workflows/ci-security.yaml
@@ -5,10 +5,6 @@ on:
pull_request:
merge_group:
-concurrency:
- group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
- cancel-in-progress: ${{ github.event_name == 'pull_request' }}
-
name: Security
permissions:
diff --git a/tools/hogli-commands/hogli_commands/workflow_lint/checks/pr_concurrency.py b/tools/hogli-commands/hogli_commands/workflow_lint/checks/pr_concurrency.py
index 59e0c697ad1c..db5748289a9f 100644
--- a/tools/hogli-commands/hogli_commands/workflow_lint/checks/pr_concurrency.py
+++ b/tools/hogli-commands/hogli_commands/workflow_lint/checks/pr_concurrency.py
@@ -44,6 +44,8 @@ class PrConcurrencyCheck(WorkflowCheck):
"ci-backend-update-test-timing.yml",
# Migration enforcement; arguably wants to complete on every PR state.
"ci-migrations-service-separation-check.yml",
+ # Shared concurrency group on master causes intermediate runs to be cancelled.
+ "ci-security.yaml",
}
)