Skip to content

fix(release): fall back when configured token is rejected - #347

Merged
0xPlayerOne merged 1 commit into
stagingfrom
fix/release-token-fallback
Aug 2, 2026
Merged

fix(release): fall back when configured token is rejected#347
0xPlayerOne merged 1 commit into
stagingfrom
fix/release-token-fallback

Conversation

@0xPlayerOne

Copy link
Copy Markdown
Owner

Summary

Make Release Please token-aware for repositories whose configured automation token is rejected by GitHub policy.

Behavior

  • Probe CODE_FOUNDRY_TOKEN or RELEASE_PLEASE_TOKEN against the current repository without logging it.
  • Use the configured token only after successful validation.
  • Fall back to the short-lived workflow token when the secret is absent or rejected.
  • Leave the generated release PR for manual merge when fallback is active.
  • Reuse the selected credential for release-PR and post-release operations.
  • Preserve the flat Release / Version, Reconcile, Post Hook, and Publish npm checks.

Validation

  • 94/94 Node tests pass.
  • actionlint passes.
  • Type-check, build, format, lint, and pack checks pass.

@0xPlayerOne
0xPlayerOne merged commit ce6e33b into staging Aug 2, 2026
17 checks passed
@0xPlayerOne
0xPlayerOne deleted the fix/release-token-fallback branch August 2, 2026 18:15
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