You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fork-sync fails: FORK_SYNC_TOKEN secret is not set #15
fork-sync cannot sync upstream: the scheduled run on 2026-11-08 05:07 UTC (run 42449540303) failed in the sync job with Set the FORK_SYNC_TOKEN secret. See chatdmig/README.md.gh secret list -R ibetitsmike/coder is empty. Every daily run fails the same way until the secret exists; no upstream commits reach the fork in the meantime.
What Mike needs to do
Create a fine-grained personal access token for ibetitsmike/coder only, with read and write on Contents, Pull requests, Issues and Workflows, and store it as the repository secret FORK_SYNC_TOKEN (Settings, Secrets and variables, Actions). Then run gh workflow run fork-sync.yaml -R ibetitsmike/coder to check it. GITHUB_TOKEN cannot replace it: it cannot push upstream's workflow changes, and PRs it opens start no workflows, so fork-ci would never run on a sync PR (comment in .github/workflows/fork-sync.yaml).
Impact
Gate G0b of the pstack plan (pstack parity: tracking #4) needs one sync PR merged, so Wave 2 waits on this.
Issues were enabled on the fork only on 2026-11-08. Before that, fork-sync's merge-conflict path (gh issue list --label sync-blocked / gh issue create --label sync-blocked) would have failed, so a conflicting sync could not have opened its sync-blocked issue. With issues now enabled and the sync-blocked label present, it should work, but it is untested: watch the first conflicting sync after the token lands.
Superseded: the upstream sync now runs on Mike's Mac as the LaunchAgent com.coder.server.upstream-sync (coder-local-sync, daily at 06:00 local), which acts as Mike through the gh keychain login and SSH, so no stored FORK_SYNC_TOKEN is needed. The Actions fork-sync workflow stays disabled; the sync logic still lives in .github/workflows/fork-sync.yaml, which the local script reads. The sync-blocked note above still applies to the local path: it is untested until the first conflicting sync.
Activity
ibetitsmike commentedon Nov 8, 2026
Superseded: the upstream sync now runs on Mike's Mac as the LaunchAgent
com.coder.server.upstream-sync(coder-local-sync, daily at 06:00 local), which acts as Mike through the gh keychain login and SSH, so no storedFORK_SYNC_TOKENis needed. The Actionsfork-syncworkflow stays disabled; the sync logic still lives in.github/workflows/fork-sync.yaml, which the local script reads. Thesync-blockednote above still applies to the local path: it is untested until the first conflicting sync.