Skip to content

Bug with --gh-host flag for enterprise servers that end in "...github.com" #2000

Closed

Description

@danmurphy42

if strings.HasSuffix(u.Hostname(), "github.com") {
return newDotcomHost()
}

It's possible for a Github Enterprise server to end in github.com, i.e. mycompanygithub.com, so any requests will still forward to api.github.com even if that's not the right hostname.

Activity

  1. self-assigned this
    on Mar 3, 2026
  2. almaleksia commented on Mar 3, 2026

    @almaleksia
    Contributor

    thanks! fixed in #2127

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

Metadata

Metadata

Assignees

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