ci(release): add PAT_TOKEN fallback so auto-merge fires today#101
Merged
ci(release): add PAT_TOKEN fallback so auto-merge fires today#101
Conversation
PR #98 wired RELEASE_PAT as the preferred token, falling back to GITHUB_TOKEN. Since RELEASE_PAT is not configured in this org yet, the fallback resolves to GITHUB_TOKEN — same stuck behavior we set out to fix. PAT_TOKEN (created 2026-01-25) is already an org secret. Wire it as the middle-tier fallback so auto-merge works today; RELEASE_PAT still takes precedence when a dedicated release PAT is added later.
Contributor
|
🎉 PR Validation ✅ PASSED Commit: Checks:
Ready to merge! ✨ 🔗 View workflow run |
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
#98 wired
RELEASE_PATas the preferred token withGITHUB_TOKENfallback. SinceRELEASE_PATis not yet configured, the fallback resolves toGITHUB_TOKEN— the same workflow-suppressing behavior we set out to fix. Auto-merge is still stuck.Both repos already have an org-level
PAT_TOKENsecret (created 2026-01-25). Wire it as the middle-tier fallback:RELEASE_PAT || PAT_TOKEN || GITHUB_TOKEN. Auto-merge starts working today with zero new secrets, andRELEASE_PATremains the preferred slot for a release-scoped PAT later.Scope follow-up (nice-to-have, not blocking)
PAT_TOKENmay be broader than a release flow strictly needs. After this lands:contents:write+pull_requests:writeRELEASE_PATValidation
Next release after merge:
gh workflow run release-prepare.yml -f bump_type=patch -f packages=core,platform -f auto_merge=trueshouldPAT_TOKENcredentialspr-validation.ymlautomaticallypublish.ymlon mergePaired PR in
agentage/cliwith the identical change.