github-auth

Configures GitHub authentication via HTTPS tokens, SSH keys, or gh CLI login.

Updated May 4, 2026
One-click install
npx skills add https://github.com/Junkfooooood/hermes-governance --skill github-auth-junkfooooood
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/Junkfooooood/hermes-governance/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/Junkfooooood/hermes-governance --skill github-auth-junkfooooood

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Setting up GitHub authentication on a new machine or headless server is error-prone: password auth is disabled, tokens need the right scopes, and SSH keys require manual configuration. This Skill walks through the entire setup so git operations, PRs, issues, and CI access work without repeated credential prompts. ## Core Features & Use Cases - Multiple Auth Methods: Supports HTTPS personal access tokens with git credential helpers, SSH key generation and configuration, and gh CLI login for both interactive and headless environments. - Automatic Detection: Detects which tools are available (git, gh) and whether authentication already exists, then picks the right setup path — including a fallback to curl-based API access using tokens extracted from git credentials. - Troubleshooting Guidance: Covers common failures like stale cached credentials, missing token scopes, SSH port blocking, and machines without sudo access. - Use Case: You are on a fresh headless server without sudo and need to push code to GitHub. The Skill guides you to create a personal access token, configure the git credential store, set your git identity, and verify push access — no root required. ## Quick Start Set up GitHub authentication on this machine so I can clone, push, and work with my repositories.

Frequently Asked Questions about github-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate git with GitHub without a password?

GitHub disabled password authentication, so use a personal access token instead. Create a token at github.com/settings/tokens with repo and workflow scopes, configure git credential.helper store, then enter the token as the password on your first git operation.

How do I set up GitHub authentication on a headless server without sudo?

Use the git-only method with an HTTPS personal access token, which requires no installation or root access. Run git config --global credential.helper store, then authenticate once with your username and token; credentials persist for all future operations.

Should I use SSH keys or HTTPS tokens for GitHub authentication?

HTTPS tokens are more portable and work everywhere without SSH configuration, making them the recommended default. SSH keys suit users who already have keys set up or prefer key-based auth; generate an ed25519 key and add the public key at github.com/settings/keys.

Can I use the GitHub API without the gh CLI installed?

Yes, use curl with a personal access token passed as an Authorization header. The token can be exported as GITHUB_TOKEN or extracted from ~/.git-credentials if git credential storage is already configured.

Why does git push keep asking for a password or fail authentication?

GitHub no longer accepts account passwords, so you must use a personal access token as the password. If authentication still fails, cached credentials may be stale — run git credential reject, then re-authenticate with a token that has the repo scope.