Repository navigation
Description
Description
PRs created by assets/workspace/.github/workflows/sync-main-to-dev.yml in downstream repos (e.g. devcontainer-smoke-test) do not trigger CI workflows. Because branch protection on dev requires CI to pass, these PRs can never be merged—even when auto-merge is enabled.
The root cause is a GitHub Actions limitation: events (push, pull_request) triggered by a GitHub App installation token do not start new workflow runs, to prevent recursive loops. The sync-main-to-dev workflow uses:
commit-app-token(GitHub App) to push the sync branch—nopushevent firesrelease-app-token(GitHub App) to create the PR—nopull_requestevent fires
Latest deployment: vig-os/devkit-smoke-test#51
Blocked sync PR: vig-os/devkit-smoke-test#52
The upstream workflow (.github/workflows/sync-main-to-dev.yml) in this repo has the same pattern and may be affected too.
Steps to Reproduce
- Merge a PR to
mainin a downstream repo (e.g.devcontainer-smoke-test) sync-main-to-devfires, creates a sync branch and opens a PR targetingdev- Observe: no CI workflows run on the PR
- PR remains unmergeable due to required status checks
Expected Behavior
CI workflows should run on the sync PR so it can pass required status checks and be merged (or auto-merged).
Actual Behavior
No CI workflows are triggered. The PR is stuck with pending/missing status checks and cannot be merged.
Environment
- GitHub Actions runner:
ubuntu-22.04 - Workflow:
assets/workspace/.github/workflows/sync-main-to-dev.yml - Downstream repo:
vig-os/devcontainer-smoke-test
Additional Context
This is a known GitHub limitation: when workflows use certain tokens to perform tasks, events from those actions may not create new workflow runs (same class of behavior as GITHUB_TOKEN not re-triggering workflows).
Possible Solution
Options to consider:
- After creating the PR, explicitly trigger CI via
workflow_dispatchorrepository_dispatch - Use a PAT for the branch push or PR creation step (trades security for simplicity)
- Close and reopen the PR with
GITHUB_TOKENto generate a newpull_requestevent from a different actor
Changelog Category
Fixed
Activity
fix(ci): dispatch CI after sync-main-to-dev PR creation
chore: deploy 'sync-main-to-dev.yml'
chore: deploy 'sync-main-to-dev.yml'
chore: manual deployment (#53)
chore: deploy 'sync-main-to-dev.yml'
chore: manual deployment (#55)
fix(ci): dispatch sync PR CI before auto-merge for all PRs
c-vigo commentedon Mar 21, 2026
Root cause analysis
Investigation of the smoke-test deployment (PR #55 → sync run #12 → PR #56) reveals three distinct findings that reframe this issue.
1.
workflow_dispatchchecks don't associate with PRsThe current workaround dispatches CI via
gh workflow run ci.yml --ref "${SYNC_BRANCH}". CI runs and passes, but GitHub does not includeworkflow_dispatch-triggered check runs in the PR's status check rollup.Evidence from PR vig-os/devkit-smoke-test#56 (head SHA
0d7cfa8):/commits/{sha}/check-runs): shows 8 check runs includingCI Summary✅ from theworkflow_dispatchCI runstatusCheckRollup): shows only 4 check runs, all frompush-triggered workflows (Sync main to dev, Scorecard).CI Summaryis absent.dev: requiresCI Summaryfrom integration 15368 (GitHub Actions)The
workflow_dispatchapproach was always destined to fail — the checks exist on the commit but are invisible to GitHub's merge evaluation.2. Conflict PRs never get
pull_request-triggered CIFrom GitHub docs:
PR #56 is a conflict PR (
mergeable_state: dirty). Even ifpull_requestevents fire correctly, GitHub skipspull_requestworkflows on PRs with merge conflicts because it can't create the merge ref (refs/pull/N/merge). This is the actual root cause for the conflict PR case — no token type can overcome this limitation.3. GitHub App tokens should trigger workflows (per docs)
The original diagnosis stated: "events triggered by a GitHub App installation token do not start new workflow runs."
This contradicts the official documentation:
Both Apps have correct permissions (verified via API):
pull_requests: write,contents: write,actions: writecontents: write,workflows: writeFor clean merges (no conflicts), App-created PRs should trigger
pull_requestworkflows naturally. This needs verification but is expected to work per the docs.Summary
pull_requestCI possible?pull_requestworkflows on conflicting PRsNext steps
pull_requestCI. If it does, theworkflow_dispatchstep is unnecessary for this case.pull_requestworkflows can never run. Options: Commit Status API bridge (commit statuses DO appear instatusCheckRollup), or accept that conflict PRs require manual CI triggering after conflict resolution.fix(ci): remove post-PR workflow_dispatch CI trigger
fix(ci): remove sync-main-to-dev workflow_dispatch CI trigger (#406)
chore: release 0.3.1 (#342)