← ClaudeAtlas

github-authlisted

Container-adapted GitHub CLI authentication. Supports token environment variables and browser login for headless environments. Use when the user says "login to github", "gh auth login", "authenticate github", or when any GitHub operation fails with auth errors.
f5-sales-demo/marketplace · ★ 0 · Code & Development · score 71
Install: claude install-skill f5-sales-demo/marketplace
**Canonical skill URI**: `skill://github:github-auth` # GitHub CLI Authentication (Container-Adapted) This skill guides authentication for headless container environments where browser-based login may not be available. ## Authentication Methods ### Method 1: GH_TOKEN Environment Variable (Recommended for Automation) Best for CI/CD, containers, and automated environments. The gh CLI automatically reads this variable -- no login command needed. **Setup:** ```bash export GH_TOKEN="ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ``` **Validation:** ```bash gh auth status ``` When `GH_TOKEN` is set, gh CLI uses it for all API requests without requiring `gh auth login`. ### Method 2: Token via stdin (Headless Containers) Use when a token is available but you want it stored in the gh CLI credential store rather than relying on env vars. **Command:** ```bash echo "$GH_TOKEN" | gh auth login --with-token ``` ### Method 3: Interactive Browser Login Works when a browser is available (desktop, VNC-enabled container). Opens a browser window for OAuth device flow. **Command:** ```bash gh auth login ``` Follow the prompts to select GitHub.com or GitHub Enterprise, choose HTTPS or SSH, and authenticate via browser. ## Validation After authenticating, verify the connection: ```bash gh auth status ``` A successful response shows the authenticated user, active account, and token type. ## Delegation When executing auth commands, spawn the cli-operator agent with these instruct