Skip to content

Copilot quota: gh auth token, env var and pasted-token rungs always target api.github.com #1306

Closed

Description

@iamtoruk

Follow-up to #1291. Rungs that carry no host (COPILOT_GITHUB_TOKEN, GH_TOKEN, GITHUB_TOKEN, gh auth token, and a pasted token) are always sent to api.github.com. A user whose only Copilot credential is a GitHub Enterprise Cloud login via gh auth login --hostname .ghe.com, or GH_TOKEN with GH_HOST, or a pasted enterprise PAT, gets a 401 and a terminal failure. Options: parse gh auth status / hosts.yml to resolve the host for the gh rung, honour GH_HOST for the env rung, and add a host field next to the pasted-token input. Also update the hardcoded api.github.com string in the dormant Settings detail.

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