github-auth

Authenticate with GitHub using HTTPS tokens, SSH keys, or gh CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Enables reliable GitHub authentication for Hermes Agent workflows, covering both HTTPS token and SSH key methods as well as gh CLI login.

Core Features & Use Cases

  • Git-only authentication via HTTPS tokens or SSH keys for Git operations
  • gh CLI authentication for seamless API access and git credential management
  • Fallback to API calls with curl when gh is unavailable, with status checks
  • Guided detection, verification, and troubleshooting to maintain authenticated state

Quick Start

Run the setup to configure GitHub authentication for the Hermes Agent and verify access to a repository.

Frequently Asked Questions about github-auth

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

FAQPage Schema
How do I set up GitHub authentication for an automated agent or CI workflow?

GitHub authentication for automated workflows can be configured using HTTPS tokens, SSH keys, or the gh CLI login path. This enables reliable access to repositories, PRs, issues, and CI workflows.

What's the best way to authenticate with GitHub in a headless Linux or macOS environment?

Authenticating with GitHub in headless Linux or macOS environments is supported via HTTPS tokens or SSH keys. The setup detects existing gh auth status and provides fallbacks for non-interactive sessions.

Do I need the gh CLI installed to configure Git authentication for GitHub?

You do not need the gh CLI installed to configure Git authentication. The setup applies whether gh is available or not, falling back to API calls with curl for status checks and credential management.

Can I use SSH keys instead of HTTPS tokens for Git operations with GitHub?

You can use SSH keys instead of HTTPS tokens for GitHub Git operations. The setup supports both methods across Linux, macOS, and Windows, providing guided detection and verification for SSH key authentication.

Why does my GitHub authentication fail when gh CLI is unavailable?

GitHub authentication may fail when gh CLI is unavailable if no fallback is configured. This setup provides a fallback to API calls using curl, executing status checks to maintain an authenticated state.

What prerequisites are required to automate GitHub authentication across different operating systems?

Automating GitHub authentication across operating systems requires a bash environment, basic Git tools, and network access to GitHub. Optional gh CLI and Python 3 dependencies enable extended API access and curl fallbacks.