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): bound the proto compatibility baseline checkout (#128751)

posthog[bot]5cbe1d51e1f7
diff --git a/.github/workflows/ci-proto.yml b/.github/workflows/ci-proto.yml
index f655c9ca7f47..87b1729ecf2b 100644
--- a/.github/workflows/ci-proto.yml
+++ b/.github/workflows/ci-proto.yml
@@ -140,9 +140,20 @@ jobs:
- name: Lint protos
run: buf lint proto/
+ - name: Check out the compatibility baseline
+ if: ${{ !cancelled() }}
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
+ with:
+ ref: master
+ path: .proto-baseline
+ fetch-depth: 1
+ sparse-checkout: proto
+ sparse-checkout-cone-mode: false
+ persist-credentials: false
+
- name: Check for breaking changes
if: ${{ !cancelled() }}
- run: buf breaking proto/ --against 'https://github.com/PostHog/posthog.git#branch=master,subdir=proto'
+ run: buf breaking proto/ --against .proto-baseline/proto/
python-codegen:
name: Check Python proto stubs are up to date (depot-ubuntu-22.04-4)