Skip to content

fork-sync fails: FORK_SYNC_TOKEN secret is not set #15

Closed as not planned

Description

@ibetitsmike

Xum opened this issue on behalf of @ibetitsmike.

What happened

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

Related: the sync-blocked path was never live

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.

Activity

  1. added
    followup
    needs-mike
    on Nov 8, 2026
  2. ibetitsmike commented on Nov 8, 2026

    @ibetitsmike
    OwnerAuthor

    Xum commented on behalf of @ibetitsmike.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    followupneeds-mike

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions