github-auth

Configure GitHub authentication for agent workflows using git tokens, SSH keys, or gh CLI.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/Simon-Copilot-Studio/ai-content-hub --skill github-auth-simon-copilot-studio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/Simon-Copilot-Studio/ai-content-hub/tree/main/github/github-auth
Command: npx skills add https://github.com/Simon-Copilot-Studio/ai-content-hub --skill github-auth-simon-copilot-studio

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Sets up reliable GitHub authentication for the agent, enabling secure access to repositories, PRs, issues, and CI workflows using either git credentials or the gh CLI.

Core Features & Use Cases

  • Git-Only Authentication: Works on any machine with git installed, supporting HTTPS tokens or SSH keys
  • gh CLI Authentication: Uses gh to manage API access and credentials when gh is installed
  • Detection Flow: Automatically detects gh availability and authentication status to choose the best method for each operation

Quick Start

Choose the appropriate authentication method for your environment and follow the setup prompts.

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 workflow?

GitHub authentication for agents is configured by enabling git HTTPS tokens, SSH keys, or gh CLI credentials. An automatic detection flow evaluates gh availability and current authentication status to select the optimal method for operations across repositories, PRs, and issues.

What is the difference between using SSH keys and HTTPS tokens for git authentication?

SSH keys and HTTPS tokens are both supported methods for git authentication. SSH keys rely on key pairs for secure access, while HTTPS tokens use credential helpers to manage access, with the detection flow automatically choosing the best method for your environment.

Do I need the gh CLI installed to authenticate with GitHub using git?

No, you do not need the gh CLI installed to authenticate with GitHub. The system supports git-only authentication using HTTPS tokens or SSH keys on any machine with git installed, applying credential helpers for secure access.

Can I use this GitHub authentication setup for CI workflows and managing pull requests?

Yes, this GitHub authentication setup applies to CI workflows, pull requests, and issues. It enables secure agent access across repositories by applying configured credentials and handling token-based authentication safely for API and git operations.

What prerequisites are needed to configure GitHub credentials with this method?

The prerequisites for configuring GitHub credentials are having git installed and optionally gh CLI configured on your machine. Python3 and curl are also required dependencies to run the setup scripts and apply the authentication flow.

Why does my GitHub authentication method change between different operations?

Your GitHub authentication method changes because an automatic detection flow evaluates gh CLI availability and authentication status before each operation. This ensures the best method, whether git HTTPS tokens or SSH keys, is chosen for optimal access.