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
Add possibility to change gh cli authentication to use keyring instead of def... #5083
+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.
Activity
wUEZRs commentedon Nov 23, 2026
+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_TOKENfirst. 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.