github-auth

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

1.2k|116|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/math-inc/OpenGauss --skill github-auth-math-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/math-inc/OpenGauss/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/math-inc/OpenGauss --skill github-auth-math-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Enables the agent to authenticate with GitHub across repositories, pull requests, issues, and CI by selecting the most suitable method (HTTPS tokens, SSH keys, or the gh CLI) and configuring credentials automatically.

Core Features & Use Cases

  • GitHub authentication via HTTPS tokens or SSH keys for environments without gh
  • gh CLI authentication when available to simplify API access and git credentials
  • Automatic detection flow to select the best method based on environment and existing credentials
  • Use Case: onboarding a new runner that needs seamless GitHub access without manual setup

Quick Start

Launch the setup and let it detect available methods to configure GitHub authentication automatically.

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 an automated agent or runner?

GitHub authentication for an agent is configured by automatically detecting available credentials and enabling HTTPS tokens, SSH keys, or the gh CLI. This grants the agent authenticated access to repositories, pull requests, and issues.

What's the best way to set up git credentials when gh CLI is not installed?

When the gh CLI is unavailable, the best way to set up git credentials is by configuring HTTPS tokens or SSH keys. The setup detects existing keys or tokens in the environment and applies them to authenticate git operations.

Does GitHub authentication work with both git operations and gh CLI API calls?

Yes, GitHub authentication works with both git and gh-based paths. The setup detects the available method, configures credentials for git HTTPS or SSH, and verifies access across both standard git operations and gh CLI API calls.

How does automatic credential detection work for GitHub repos?

Automatic credential detection works by scanning the environment for existing SSH keys, HTTPS tokens, or the gh CLI. It then selects the most suitable method available to configure access without requiring manual setup.

Can I rotate SSH keys or HTTPS tokens in a mixed GitHub environment?

Yes, you can rotate SSH keys or HTTPS tokens in mixed GitHub environments. The setup handles key rotation scenarios by detecting the updated credentials and reconfiguring the authentication state to verify continuous access.

Why does my fresh GitHub runner fail authenticated access without manual setup?

A fresh GitHub runner fails authenticated access because it lacks configured credentials. Running the automatic setup detects available SSH keys, HTTPS tokens, or gh CLI to configure and verify GitHub access seamlessly.