Repository navigation
fix(cli): Point org auth token 401s at the org's auth token settings - #2167
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e334945. Configure here.
sentry-junior
Bot
force-pushed
the
fix/cli-org-token-401-hint
branch
from
November 11, 2026 09:13
cb6ad61 to
c14449e
Compare
sentry-junior
Bot
force-pushed
the
fix/cli-org-token-401-hint
branch
from
November 11, 2026 09:24
c14449e to
ecb1c21
Compare
betegon
force-pushed
the
fix/cli-org-token-401-hint
branch
from
November 11, 2026 10:08
ecb1c21 to
b5fbdc7
Compare
sentry-junior
Bot
force-pushed
the
fix/cli-org-token-401-hint
branch
from
November 11, 2026 11:26
b5fbdc7 to
34f7b95
Compare
An unknown or expired org auth token was told to create a new personal token. Send org auth tokens (from an env var or stored, classified by the `sntrys_` prefix as Sentry does) to the organization's Settings > Auth Tokens instead. Base the advice on the credential the request sent, so a stored login with a leftover env token gets re-login steps rather than env-token advice. Co-Authored-By: bete <[email protected]>
betegon
force-pushed
the
fix/cli-org-token-401-hint
branch
from
November 11, 2026 11:29
34f7b95 to
1cdc75c
Compare
One row per credential: an unrecognized org auth token points at the org's Settings > Auth Tokens, and a stored login with a leftover env token gets re-auth advice. Co-Authored-By: bete <[email protected]>
betegon
approved these changes
Nov 11, 2026
7 tasks done
This branch was previously deployed
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.

Stacked on #2165.
Split out of #2160.
About 1% of
release createandsourcemap uploadruns hit a 401: over 14 days, about 75k and 59k on 0.45 (about 100 each on 0.49). Most CI setups use org auth tokens, but the 401 message sends every env token to the personal token page.Before
release create, with an org auth token (sntrys_…) inSENTRY_AUTH_TOKEN:After
On
Token expired, the third line readsYour SENTRY_AUTH_TOKEN org auth token has expired.instead. A storedsntrys_…token readsYour stored org auth token …. Asentry auth loginsession with a leftoverSENTRY_AUTH_TOKENnow getsRe-authenticate with: sentry auth logininstead of advice about the env token.via @betegon.
--
View Session in Sentry