Repository navigation
release: nightly driver on the pyautolabs-bot App; retire repo_settings.yml (token phase 2a) - #532
Merged
Merged
Conversation
…tire repo_settings.yml nightly-release.yml drops PAT_PYAUTOLABS for a per-job, owner-wide App token (actions write, contents read, issues read): the driver dispatches and polls the Hands release and Heart integrate workflows and reads commits, tags and release-blocker issues across the release-relevant repos. repo_settings.yml needs repo Administration, which the App deliberately lacks, so it is deleted with its test; the skills that pointed at it now give the local gh api -X PATCH delete_branch_on_merge loop. Refs #531 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion, loud on failure The nightly mint gains permission-variables: write so the driver can read and write PyAutoBrain's NIGHTLY_LAST_WINDOW_END anchor with the App token. A failed or malformed anchor read now pages and exits 1 (driver error) instead of silently judging a 24h window, and a failed write after a shipped or quiet night exits 1 instead of warning on stderr. The stale GH_TOKEN "PAT" comment is updated. Refs #531 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Token consolidation phase 2a (#531) for the Brain.
nightly-release.ymlstops usingPAT_PYAUTOLABS. It mints a per-job, owner-widepyautolabs-botApp token instead, with actions write, contents read, issues read and variables write. The driver dispatches and polls the Hands release and Heart integrate workflows, reads commits, tags andrelease-blockerissues across the release-relevant repos, and reads and writes this repo'sNIGHTLY_LAST_WINDOW_ENDanchor. No credential fallback.nightly.sh: if the anchor read fails or returns a malformed value, the driver now pages and exits 1 (driver error). It used to judge a 24h window silently. If the anchor write fails, it exits 1; it used to print a stderr warning. The stale "PAT" comment onGH_TOKENis updated.repo_settings.ymlis retired, along with its test. It needs repo Administration, which the App deliberately lacks. The skills that pointed at it (GITHUB_ACCESS.md,prm/reference.md,repo_cleanup/SKILL.md,repo_cleanup/reference.md) now document the local loop:gh api -X PATCH repos/PyAutoLabs/<repo> -F delete_branch_on_merge=true.Merge gate: do not merge until the human has granted the App the Variables (read and write) permission AND approved it on the installation; verify with
gh api orgs/PyAutoLabs/installations --jq '.installations[]|select(.app_slug=="pyautolabs-bot")|.permissions.variables'= writepermission-variablesis not increate-github-app-token@v3's generated input list (upstream actions/create-github-app-token#231). The runner will warn "Unexpected input", but the action forwards everypermission-*input to the token request.Still on
PAT_PYAUTOLABSon purpose:branch_sweep_all.ymlandbranch_archive.yml(phase 2b). Hands'docs/nightly_release_design.mdsecrets list is left for phase 5.API Changes
None (workflow auth change).
See full details below.
Test Plan
nightly-release.yml;bash -nonnightly.shpytest tests -q: 1267 passed, 1 deselected (test_grouped_organ_consumers::test_hygiene_map_and_heart_board_find_grouped_checkoutsfails the same way on main under the task bundle'sPYAUTO_MIND)nightly-release.ymlwithdry_run=trueFull API Changes (for automation & release notes)
Removed
.github/workflows/repo_settings.yml. Replaced by a documented localgh apiloop.Required configuration
vars.APP_CLIENT_ID,secrets.APP_PRIVATE_KEY(org level), plus the App's Variables read/write permission.nightly-release.yml:secrets.PAT_PYAUTOLABS.Heart readiness: YELLOW, acknowledged by the human before opening (manifest drift on one workspace checkout; PyAutoLens release validation stale — both unrelated to this change).
🤖 Generated with Claude Code