Skip to content

1.3.0 env GITHUB_ENTERPRISE_TOKEN is ignored #2517

@gimler

Description

@gimler

Describe the bug

GITHUB_ENTERPRISE_TOKEN env is not used in v1.3.0 but the same code works with 1.2.1.

see pr #2388

Steps to reproduce the behavior

gh version 1.2.1 (2020-11-11)
> https://github.com/cli/cli/releases/latest
> 
> 
> A new release of gh is available: 1.2.1 → v1.3.0
> https://github.com/cli/cli/releases/tag/v1.3.0

GITHUB_ENTERPRISE_TOKEN=abc gh release view demo --repo example.com/owner/repo
> demo
> ... released this about 5 months ago
> ...
gh --version
> gh version 1.3.0 (2020-11-24)
> https://github.com/cli/cli/releases/latest

GITHUB_ENTERPRISE_TOKEN=abc gh release view demo --repo example.com/owner/repo
> Welcome to GitHub CLI!
> 
> To authenticate, please run `gh auth login`.
> You can also set the one of the auth token environment variables, if preferred.


### Expected vs actual behavior

`GITHUB_ENTERPRISE_TOKEN` env is used

Metadata

Metadata

Assignees

No one assigned

    Labels

    authrelated to tokens, authentication state, or oauthbugSomething isn't workingpriority-2Affects more than a few users but doesn't prevent core functions

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions