Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
This repository was archived by the owner on Oct 23, 2026. It is now read-only.

Incorrect warning on .sentryclirc token #1345

Closed

Description

@BYK

When I set a token in .sentryclirc in my project root, I got the following warning:

byk@labs ~/C/o @ sentry issue list
ℹ Detected SENTRY_AUTH_TOKEN env var but using stored login for <email>.                                                                                                         auth 10:16:32
  Set SENTRY_FORCE_ENV_TOKEN=1 to prefer the env var.

However it should show the correct source. Moreover I think the behavior should be modified:

  1. If this is a token that encodes/embeds the org and host we should be able to trust it
  2. We should only use the saved token from the DB if we cannot trust the other token and/or it fails to authenticate for the project we are trying to use

Activity

  1. self-assigned this
    on Aug 3, 2026
  2. added
    jared
    on Aug 3, 2026
  3. added a commit that references this issue on Aug 3, 2026
    e33a1bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

jared

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions