: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): limit sync app keys to master runs (#125579)
Raúl Negrón-Otero59aaa01b6212
diff --git a/.github/workflows/foss-sync.yml b/.github/workflows/foss-sync.ymlindex 2b1da26d1a49..da003ed0854d 100644--- a/.github/workflows/foss-sync.yml+++ b/.github/workflows/foss-sync.yml@@ -4,7 +4,6 @@ on:push:branches:- master- - mainconcurrency:group: foss-sync@@ -16,6 +15,10 @@ jobs:if: github.repository == 'PostHog/posthog'runs-on: ubuntu-24.04timeout-minutes: 10+ # The environment holds the app key and admits only master runs, so a branch workflow cannot read it.+ environment:+ name: posthog-foss-sync+ deployment: falsepermissions:contents: readsteps:diff --git a/.github/workflows/private-sync.yml b/.github/workflows/private-sync.ymlindex 6c8fb6aa53b6..156bd58bb7b7 100644--- a/.github/workflows/private-sync.yml+++ b/.github/workflows/private-sync.yml@@ -21,6 +21,10 @@ jobs:if: github.repository == 'PostHog/posthog' && vars.PRIVATE_SYNC_PAUSED != 'true'runs-on: ubuntu-24.04timeout-minutes: 10+ # The environment holds the app key and admits only master runs, so a branch workflow cannot read it.+ environment:+ name: posthog-private-sync+ deployment: falsepermissions:contents: readsteps: