: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
chore(ci): fix sync push auth shadowed by checkout credentials (#60742)
Tom Piccirello7c45a1b93494
diff --git a/.github/workflows/foss-sync.yml b/.github/workflows/foss-sync.ymlindex da1eb6335137..2df4333d6ef5 100644--- a/.github/workflows/foss-sync.yml+++ b/.github/workflows/foss-sync.yml@@ -28,15 +28,16 @@ jobs:owner: PostHogrepositories: posthog-foss- # blob:none skips historical blobs (avoids a full-history clone); the full- # commit graph keeps pushes connected. Lazy blob fetches need origin auth,- # so persist-credentials stays default-on.+ # blob:none avoids a full-history clone; full commit graph keeps pushes connected.+ # persist-credentials:false so checkout's default-token auth header doesn't shadow+ # the app token we push with (posthog is public, so lazy blob fetches still work).- name: Checkout posthoguses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:fetch-depth: 0filter: blob:nonefetch-tags: true+ persist-credentials: false# Stage on a branch, not master, so master never momentarily exposes raw# posthog (ee/, non-MIT LICENSE) before the FOSS cleanup commit lands.diff --git a/.github/workflows/private-sync.yml b/.github/workflows/private-sync.ymlindex f4a4e8020dcc..3b624b8e5347 100644--- a/.github/workflows/private-sync.yml+++ b/.github/workflows/private-sync.yml@@ -27,15 +27,16 @@ jobs:owner: PostHogrepositories: posthog-private- # blob:none skips historical blobs (avoids a full-history clone); the full- # commit graph keeps pushes connected. Lazy blob fetches need origin auth,- # so persist-credentials stays default-on.+ # blob:none avoids a full-history clone; full commit graph keeps pushes connected.+ # persist-credentials:false so checkout's default-token auth header doesn't shadow+ # the app token we push with (posthog is public, so lazy blob fetches still work).- name: Checkout posthoguses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:fetch-depth: 0filter: blob:nonefetch-tags: true+ persist-credentials: false# 1:1 mirror: replays posthog's existing signed commits — no new commit, so# signing enforcement on posthog-private is unaffected.