Skip to content

gh as Docker credential helper #5150

@odsod

Description

@odsod

Describe the feature or problem you’d like to solve

The current way of creating PATs for authentication to private GHCR images is cumbersome. Especially if GHCR is adopted in an enterprise, it adds extra steps to employee onboarding.

Proposed solution

Add gh auth configure-docker (similar to how gcloud does it) and have Docker use gh as a credential helper for ghcr.io.

Additional context

See https://cloud.google.com/sdk/gcloud/reference/auth/configure-docker for inspiration of a setup that works really well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-authrelating to the gh auth command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions