Skip to content

GHES auth token env-var names mismatch #1286

@philpennock

Description

@philpennock

pinact version

3.6.0

$ pinact -v
pinact version 3.6.0

Environment

  • OS (Windows, Linux, macOS, etc): Linux
  • CPU Architecture (amd64, arm64, etc): amd64

Overview

How to reproduce

  • Read docs for GHES support
  • See the list of environment variables at "GitHub Access Token for GHES"
  • Cross-check against the gh official client tool

Expected Behaviour

The official env-vars should all be supported, in the same precedence order.

Actual Behaviour

GH_ENTERPRISE_TOKEN is missing

Important Factoids

The only two official env-var names are, in priority order:

  1. GH_ENTERPRISE_TOKEN
  2. GITHUB_ENTERPRISE_TOKEN

Since pinact only supports the second precedence name, anyone using the correct first precedence name won't interoperate cleanly with pinact.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions