Repository navigation
fix(git): a failed token mint fails clearly in App mode - #6673
Merged
Merged
Conversation
When the process acts as the GitHub App and the mint fails, a git child that reaches a remote raises GitHubUnauthenticatedError with the mint's reason before it starts, as a gh call does. A person's git child runs with no token, and the remote gives its own error. A lookup that finds no token is not kept, so the next call looks again. The 60 second window and DEFAULT_GH_AUTH_TOKEN_RETRY_SECONDS are removed. Closes #6671
A mint that GitHub does not answer (5xx or no connection) raises GitHubUnreadError, which the Service does not read as a refused identity: the round fails and the next round mints again. A refusal stays GitHubUnauthenticatedError. When a renewal fails, the kept installation token serves until it expires. Refs #6671
dan-petty
force-pushed
the
fix/6671-token-mint-fails-clearly
branch
from
November 21, 2026 19:49
57480d2 to
8dd7ff6
Compare
The mint returns the token and the reason together, so the warning holds a fixed text only. The request metric keeps the mint's status. Refs #6671
A rate-limited exchange (HTTP 429, a secondary limit, no quota) raises GitHubRateLimitError with the App's login, as a 5xx raises GitHubUnreadError. The kept token serves until it expires, and research goes on with no token. Refs #6671
dan-petty
marked this pull request as ready for review
November 21, 2026 20:36
dan-petty
pushed a commit
that referenced
this pull request
Nov 21, 2026
🤖 I have created a release *beep* *boop* --- ## [0.189.0](v0.188.4...v0.189.0) (2026-11-21) ### Features * **roadmap:** run implement as prepare, agent and publish phases ([#6670](#6670)) ([54de847](54de847)), closes [#3702](#3702) ### Bug Fixes * **git:** a failed token mint fails clearly in App mode ([#6673](#6673)) ([fd1b859](fd1b859)) * **roadmap:** fix-conflict settles the version lines of uv.lock ([#6682](#6682)) ([82ba605](82ba605)), closes [#6623](#6623) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.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.
When the process acts as the GitHub App and the mint fails, a git child that reaches a remote now fails at once with the mint's error, as a gh call does.
GitHubUnauthenticatedError, and the Service halts.GitHubUnreadError, and a rate-limited mint raisesGitHubRateLimitError. The round fails and the next round mints again. This also stops the halt that such a mint caused for a gh call.DEFAULT_GH_AUTH_TOKEN_RETRY_SECONDSare removed.Closes #6671
Change:
openspec/changes/archive/2026-11-21-6671-token-mint-fails-clearly/