Skip to content

Add possibility to change gh cli authentication to use keyring instead of def... #5083

Backlog

Description

@hropponen

Add possibility to change gh cli authentication to use keyring instead of defaulting to GH_TOKEN


Field Value
App version 1.1.32
OS Windows 10.0.26200
Theme Xotopio
Path /chat
Tenure Week 16

Activity

  1. wUEZRs commented on Nov 23, 2026

    @wUEZRs

    +1, with a concrete impact for enterprise admins (GHE.com data residency, EMU).

    The app injects GH_TOKEN into agent shells with these scopes:
    copilot, gist, project, read:org, repo, user, workflow, write:plugin_gateway_connections

    My own gh keyring login on the same PC has admin:org and admin:enterprise. Because GH_TOKEN overrides the keyring, every org or enterprise admin task an agent runs from the app (rulesets, org secrets, team links, app installs, Copilot seats) fails with 403/404 until the agent runs Remove-Item Env:GH_TOKEN first. Agents rediscover this workaround in every session, so as an IT owner I lose time to it daily.

    In Copilot CLI sessions (no injected GH_TOKEN) the same commands work.

    Related: #5879 (agents misdiagnosing GHE access, same daily token/access friction).

    Ask: a setting to let agent shells use the gh keyring login instead of the injected token, or to request extra scopes (admin:org) for the app token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions