ci: open the nightly PRs as the riseproject-dev github app - #2083
Merged
Merged
Conversation
luhenry
force-pushed
the
claude/version-upgrade-workflow-nqf4y0
branch
from
September 18, 2026 11:08
6ef343c to
ef28f64
Compare
Contributor
|
luhenry
force-pushed
the
claude/version-upgrade-workflow-nqf4y0
branch
2 times, most recently
from
September 18, 2026 12:34
80fc591 to
a357544
Compare
Branches pushed and PRs opened with GITHUB_TOKEN raise no events, so the per-package upgrade PRs ended up with no checks at all. Mint a riseproject-dev installation token when RISEPROJECT_APP_ID is set and commit as its bot, falling back to GITHUB_TOKEN otherwise.
The documentation PR is opened from _publish-wheel.yml, so it needs the App token too, or it keeps landing without checks. A reusable workflow gets no secret it is not handed, hence the one line in each build workflow.
luhenry
force-pushed
the
claude/version-upgrade-workflow-nqf4y0
branch
from
September 18, 2026 12:37
a357544 to
1059b2f
Compare
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.
Branches pushed and pull requests opened with the default
GITHUB_TOKENraise no events, so neither the per-package nightly upgrade PRs nor the documentation PR got any checks.nightly.ymland_publish-wheel.ymlnow mint an installation token for theriseproject-devApp, push and open their PRs with it, and commit asriseproject-dev[bot].Setup needed before this takes effect (Settings → Secrets and variables → Actions):
RISEPROJECT_APP_CLIENT_IDIv23…), from the App's settings pageRISEPROJECT_APP_PRIVATE_KEY.pem,-----BEGIN…and-----END…lines includedcreate-github-app-tokenv3 deprecatesapp-idin favour ofclient-id, hence the Client ID rather than the numeric App ID.The App also has to be installed on this repository, with Contents: read & write, Pull requests: read & write and Issues: read (
check_versions.pylooks up theUpstreammilestone). With the variable unset, both workflows behave exactly as today:GITHUB_TOKEN,github-actions[bot], no checks.What changed:
nightly.ymlmints the token for the checkout, bothghsteps and the branch pushes. Skipped onpull_request, where a fork or Dependabot has no access to the key and the job only needs to detect versions._publish-wheel.ymldoes the same for the docs PR, gated onmainsince nothing is published elsewhere. A reusable workflow sees no secret it is not handed, so all 707build-<pkg>.ymlcallers passapp-private-keythrough — that is the bulk of the diff.update_doc.pypushes the docs branch overGH_TOKENrather than relying on whatever credentials the checkout persisted.ci_scripts/git-identity.shresolves the commit identity for both, reading the bot account's numeric id from the API (that id is what ties a commit to the account).One-off cost of merging: touching every
build-<pkg>.ymlmatches their ownpull_requestpath filters, so this PR triggers all 707 build workflows. 674 stop atsetupwith nothing to build; 33 packages have pending versions onmainand will run a real (dry-run) build.