Skip to content

sync.yml PRs are opened with GITHUB_TOKEN, so required checks never run on them #120

Closed

Description

@TMHSDigital

Why it matters

sync.yml opens registry-sync PRs with peter-evans/create-pull-request using the default GITHUB_TOKEN. GitHub does not start pull_request workflows for PRs created with GITHUB_TOKEN, so none of the 7 required checks run. Without a manual push or a close-and-reopen, the PR can never merge. No such PR exists yet, so nothing is broken today, but the first time the automation fires it will produce a stuck PR.

Evidence

  • .github/workflows/sync.yml calls peter-evans/create-pull-request with no token: input.
  • GitHub docs: events triggered by GITHUB_TOKEN do not create new workflow runs (except workflow_dispatch and repository_dispatch).

Suggested approach

Use a GitHub App installation token (for example actions/create-github-app-token) or a fine-grained PAT for the PR creation step. Alternatively, document the close-and-reopen workaround in .github/workflows/README.md.

Done when

An automated sync PR receives all required checks without manual action.

Activity

  1. added
    bug
    priority: low
    on Oct 8, 2026
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

    bugcipriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions