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.

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.yml
index da1eb6335137..2df4333d6ef5 100644
--- a/.github/workflows/foss-sync.yml
+++ b/.github/workflows/foss-sync.yml
@@ -28,15 +28,16 @@ jobs:
owner: PostHog
repositories: 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 posthog
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
filter: blob:none
fetch-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.yml
index f4a4e8020dcc..3b624b8e5347 100644
--- a/.github/workflows/private-sync.yml
+++ b/.github/workflows/private-sync.yml
@@ -27,15 +27,16 @@ jobs:
owner: PostHog
repositories: 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 posthog
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
filter: blob:none
fetch-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.