Skip to content

Run gh auth setup-git in entrypoint to wire gh as git credential helper #14

Closed

Description

@itscooleric

Problem

Inside the container, git push hangs waiting for credentials because no credential helper is configured — even though gh is authenticated via GH_TOKEN.

Fix

Add gh auth setup-git to the entrypoint script so gh is registered as a git credential helper at container startup. This lets git push, git fetch, etc. work seamlessly without embedding tokens in URLs.

Implementation

In entrypoint.sh, add before the final exec line:

# Wire gh as git credential helper so git push/fetch work without token embedding
gh auth setup-git

Activity

  1. itscooleric commented on Mar 7, 2026

    @itscooleric
    OwnerAuthor

    Shipped in PR #33 (merged to dev). gh auth setup-git wired in entrypoint with best-effort fallback.

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

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions