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
trigger-prepare-release job dispatches prepare-release.yml using the RELEASE_APP token (line 445 of repository-dispatch.yml). This means prepare-release.yml runs with vig-os-release-app[bot] as the triggering actor.
prepare-release.yml creates release PR #50 using ${{ github.token }}. Because the workflow was dispatched by the release app, GITHUB_TOKEN acts on behalf of vig-os-release-app[bot] — so the PR author is vig-os-release-app[bot].
ready-release-pr job then generates a token from the same RELEASE_APP and runs gh pr review "${PR_NUMBER}" --approve (line 565). This is vig-os-release-app[bot] trying to approve its own PR.
GitHub rejects the self-approval, which is a platform constraint that cannot be overridden.
Root cause
The workflow uses a single GitHub App identity (vig-os-release-app) for both creating the release PR (indirectly, via triggering prepare-release.yml) and approving it. GitHub does not allow a user or bot to approve their own pull request.
Fix options
Option
Description
Impact
A. Use COMMIT_APP to trigger prepare-release.yml
Change line 445 to use a token generated from COMMIT_APP_ID/COMMIT_APP_PRIVATE_KEY instead of RELEASE_APP. The PR would then be authored by the commit app bot, and the release app can approve it.
Minimal change; requires COMMIT_APP to have actions: write permission on the smoke-test repo.
B. Use a separate app for approval
Add a second create-github-app-token step in the ready-release-pr job that generates a token from COMMIT_APP, and use that token for the gh pr review --approve call.
Minimal change; requires COMMIT_APP to have pull_requests: write permission.
C. Skip self-approval if not required
If branch protection doesn't strictly require an approving review, remove the gh pr review --approve call entirely and rely on auto-merge once CI passes.
Zero new permissions; only viable if branch protection allows it.
Option B is likely the cleanest fix — it keeps the release app as PR author and uses the commit app only for the approval, with no change to the dispatch chain.
Manual cleanup for this run
Release PR #50 is open with mergeable_state: dirty (merge conflicts from the changelog sync). It should be closed.
Branch release/0.3.1 should be deleted.
Re-dispatch with a new RC tag after the fix is applied.
Scope update: implementation will include both #402 and #398 because they are coupled in the release path.
Smoke-test dispatch failed for 0.3.1-rc9 #402: split repository-dispatch.yml into two phases (dispatch phase and release-on-PR-merge phase), remove the self-approval/merge-wait bottleneck, and preserve automatic failure reporting.
This keeps the current issue focused on orchestration reliability. The downstream CHANGELOG reset/scaffold behavior is tracked separately in #403 and is intentionally excluded from this change set.
Activity
c-vigo commentedon Mar 20, 2026
Root Cause Analysis
Failure
The
ready-release-prjob failed at step "Mark release PR ready and approve" with:Failing job log
Cause chain
trigger-prepare-releasejob dispatchesprepare-release.ymlusing theRELEASE_APPtoken (line 445 ofrepository-dispatch.yml). This meansprepare-release.ymlruns withvig-os-release-app[bot]as the triggering actor.prepare-release.ymlcreates release PR #50 using${{ github.token }}. Because the workflow was dispatched by the release app,GITHUB_TOKENacts on behalf ofvig-os-release-app[bot]— so the PR author isvig-os-release-app[bot].ready-release-prjob then generates a token from the sameRELEASE_APPand runsgh pr review "${PR_NUMBER}" --approve(line 565). This isvig-os-release-app[bot]trying to approve its own PR.GitHub rejects the self-approval, which is a platform constraint that cannot be overridden.
Root cause
The workflow uses a single GitHub App identity (
vig-os-release-app) for both creating the release PR (indirectly, via triggeringprepare-release.yml) and approving it. GitHub does not allow a user or bot to approve their own pull request.Fix options
COMMIT_APPto triggerprepare-release.ymlCOMMIT_APP_ID/COMMIT_APP_PRIVATE_KEYinstead ofRELEASE_APP. The PR would then be authored by the commit app bot, and the release app can approve it.COMMIT_APPto haveactions: writepermission on the smoke-test repo.create-github-app-tokenstep in theready-release-prjob that generates a token fromCOMMIT_APP, and use that token for thegh pr review --approvecall.COMMIT_APPto havepull_requests: writepermission.gh pr review --approvecall entirely and rely on auto-merge once CI passes.Option B is likely the cleanest fix — it keeps the release app as PR author and uses the commit app only for the approval, with no change to the dispatch chain.
Manual cleanup for this run
mergeable_state: dirty(merge conflicts from the changelog sync). It should be closed.release/0.3.1should be deleted.c-vigo commentedon Mar 20, 2026
Scope update: implementation will include both #402 and #398 because they are coupled in the release path.
repository-dispatch.ymlinto two phases (dispatch phase and release-on-PR-merge phase), remove the self-approval/merge-wait bottleneck, and preserve automatic failure reporting.sync-main-to-dev.ymlto create sync branches viagit pushso CI triggers correctly on PR open.This keeps the current issue focused on orchestration reliability. The downstream CHANGELOG reset/scaffold behavior is tracked separately in #403 and is intentionally excluded from this change set.
fix(ci): split smoke-test dispatch into two-phase orchestration
test(ci): add phase 2 tests and update phase 1 dispatch assertions
fix(ci): fail on missing release-kind label in phase 2 validation
docs: align 0.3.1 smoke-test notes with CHANGELOG sync removal
fix(ci): split smoke-test dispatch into two-phase orchestration (#404)
chore: release 0.3.1 (#70)
chore: release 0.3.1 (#92)
chore: release 0.3.1 (#97)
chore: release 0.3.1 (#100)
chore: release 0.3.1 (#109)
chore: release 0.3.1 (#112)
chore: release 0.3.1 (#342)