Skip to content

ci(release): add PAT_TOKEN fallback so auto-merge fires today#101

Merged
vreshch merged 1 commit intomasterfrom
ci/pat-token-fallback
Apr 15, 2026
Merged

ci(release): add PAT_TOKEN fallback so auto-merge fires today#101
vreshch merged 1 commit intomasterfrom
ci/pat-token-fallback

Conversation

@vreshch
Copy link
Copy Markdown
Contributor

@vreshch vreshch commented Apr 15, 2026

Summary

#98 wired RELEASE_PAT as the preferred token with GITHUB_TOKEN fallback. Since RELEASE_PAT is not yet configured, the fallback resolves to GITHUB_TOKEN — the same workflow-suppressing behavior we set out to fix. Auto-merge is still stuck.

Both repos already have an org-level PAT_TOKEN secret (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, and RELEASE_PAT remains the preferred slot for a release-scoped PAT later.

Scope follow-up (nice-to-have, not blocking)

PAT_TOKEN may be broader than a release flow strictly needs. After this lands:

  • Create a fine-grained PAT scoped to contents:write + pull_requests:write
  • Add as org secret RELEASE_PAT
  • Workflow picks it up automatically (first in the fallback chain) — no further code change

Validation

Next release after merge: gh workflow run release-prepare.yml -f bump_type=patch -f packages=core,platform -f auto_merge=true should

  1. Push the release branch under PAT_TOKEN credentials
  2. Fire pr-validation.yml automatically
  3. Auto-merge when validation passes
  4. Trigger publish.yml on merge

Paired PR in agentage/cli with the identical change.

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.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2026

🎉 PR Validation ✅ PASSED

Commit: df4b690e8d5e37cddfba2d6ffa992b5af8537ab1
Branch: ci/pat-token-fallback

Checks:

  • ✅ Release guard (no version/changelog changes)
  • ✅ Dependencies installed
  • ✅ Type check passed
  • ✅ Linting passed
  • ✅ Format check passed
  • ✅ Tests + coverage passed
  • ✅ Build successful

Ready to merge!


🔗 View workflow run
⏰ Generated at: 2026-04-15T20:53:44.058Z

@vreshch vreshch merged commit 1d0b197 into master Apr 15, 2026
2 checks passed
@vreshch vreshch deleted the ci/pat-token-fallback branch April 15, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant