You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(core): a failed token mint fails clearly in App mode #6671
After a failed token lookup or App mint, _session_github_token(retry_now=False) (src/devops_cli/core/process.py) gives each network git child no token for 60 s (DEFAULT_GH_AUTH_TOKEN_RETRY_SECONDS), with no error. A gh call in the same window raises GitHubUnauthenticatedError. So in App mode (runner Jobs and the Service), a failed mint shows as a git error on a private repository ("could not read Username"), not as the real cause.
Change
When devops-cli acts as the GitHub App, a failed lookup or mint fails at once with a clear error, for git children as for gh calls. The next round mints again.
On the person path, drop the 60 s window with no token: git runs with no token, so the remote gives its own error. A person with no gh login can still fetch a public repository, a Gitea remote or a file:// remote.
Add no retry loop, wait or cap.
Acceptance criteria
In App mode, a git child after a failed mint gets a clear error that names the failed mint.
On the person path with no gh login, a git fetch of a public repository works.
Decision
The owner approved this change on 2026-11-21 ("Proceed as recommended"), after an audit of the git use of devops-cli. It does not fix #5529, which is a delay on the GitHub side.
Scope: none. The title has the scope core, and .github/labels.yml declares no scope/core label. Add the label to the file to give the scope to this item.
Activity
dan-petty commentedon Nov 21, 2026
core, and .github/labels.yml declares no scope/core label. Add the label to the file to give the scope to this item.Both deal with a failed GitHub App token mint, but #2491 changes the mint's own error message and the candidate changes what git children experience in the 60 s window after the mint fails.fix(git): a failed token mint fails clearly in App mode
fix(git): only a refused mint halts the Service
fix(git): log no text of the mint after a failed renewal
fix(git): a rate-limited mint halts no lane
devops-cli-service commentedon Nov 21, 2026
Released in v0.189.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.189.0
devops-cli-service commentedon Nov 21, 2026
Live since 2026-11-21 21:03 UTC