github-auth

Configure GitHub authentication for Git and gh CLI via HTTPS tokens or SSH keys.

Updated Jun 28, 2026
One-click install
npx skills add https://github.com/jleechanorg/hermes-agent --skill github-auth-jleechanorg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/jleechanorg/hermes-agent/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/jleechanorg/hermes-agent --skill github-auth-jleechanorg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, git, curl, python3, and includes scripts (resource) components.

What problem does it solve?

People and teams often struggle to securely authenticate to GitHub across devices and automation workflows, leading to friction during pushes, pulls, reviews, and CI tasks.

Core Features & Use Cases

  • Git HTTPS authentication with personal access tokens or SSH keys to grant secure, persistent access.
  • gh CLI authentication with interactive browser login or token-based setup for API access and git credential management.
  • Automatic git identity configuration and guidance for secure token handling across local machines and CI environments.
  • Use Case: A developer workstation is prepared for a new project by configuring all GitHub credentials and ensuring seamless push/pull/auth flows.

Quick Start

Set up GitHub authentication on your machine by choosing a method (HTTPS token, SSH, or gh login) and following the prompts.

Frequently Asked Questions about github-auth

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

FAQPage Schema
How do I configure GitHub authentication for git and gh CLI?

To configure GitHub authentication, you can use either HTTPS personal access tokens or SSH keys. The setup detects your current auth state and configures git credentials or SSH, with optional gh CLI interactive login for API access.

What's the best way to set up SSH keys for GitHub authentication?

GitHub SSH key authentication is supported natively. You can configure SSH keys to grant secure, persistent access instead of HTTPS tokens, allowing seamless push and pull operations across your local machines.

Do I need gh CLI installed to authenticate with GitHub?

No, gh CLI is optional. You can authenticate using standard Git HTTPS tokens or SSH keys independently. However, gh CLI authentication provides richer API access and interactive browser-based login.

Can I use personal access tokens for GitHub HTTPS authentication?

Yes, personal access tokens are fully supported for GitHub HTTPS authentication. The setup guides secure token handling and configures git credentials to ensure persistent access across devices and CI environments.

How does Git identity configuration work during GitHub auth setup?

Git identity configuration is handled automatically during GitHub auth setup. It configures your user credentials alongside token or SSH setup, ensuring your commits are properly attributed across local and CI workflows.

Why does GitHub authentication fail in CI environments?

GitHub authentication often fails in CI due to missing credentials or unconfigured tokens. This setup detects your auth state and configures persistent HTTPS tokens or SSH keys to ensure seamless push, pull, and review flows.