ci: auto-pass required checks on GITHUB_TOKEN release PRs#2316
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
cc7fb1a to
e8af175
Compare
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Author
|
@claude review this PR. |
Contributor
Author
🤖 Claude Code Review — PASSReviewed the diff ( What it does: adds Strengths
Advisories (by-design, non-blocking)
Verdict: PASS — no blocking issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
"Create Release PR" (
version-bump.yml) opens the release PR withGITHUB_TOKEN. GitHub's recursion guard means that PR never triggers theon: pull_requestchecks, so the branch-protection required status checks hang as "Expected" and the release PR can't merge without a manual nudge (historically: mergingmasterin to kick CI).A release PR only bumps
lerna.json+packages/**/package.json, so the full suite adds nothing. After creating the PR, post a passing check run for each of the 20 required contexts on the PR head SHA. Created viaGITHUB_TOKEN, the runs are owned by the GitHub Actions app (id 15368), which matches the app-pinned required contexts onmaster.strictis off, so synthetic checks alone unblock the PR — no approval click, auto-mergeable.checks: write; pinsactions/github-scriptto v7.0.1 by SHA (PER-8608).createdandupdatedPR operations (re-dispatching the same version updates the existing release branch).version-bump.ymlchanges — CI workflows are untouched, so normal PRs are completely unaffected.Test plan
Verified end-to-end on a throwaway fork with the same 20 required contexts (18 app-pinned to
15368,semgrep/ci+Claude Code Reviewany-app,strict:false):success/app_id=15368.mergeStateStatusCLEAN; merged successfully underenforce_admins:true(no bypass). A control PR with no synthetic checks was BLOCKED.Notes
Claude Code Reviewon release PRs (intended — version-only PR).