github-auth - Set up GitHub authentication using git or gh CLI
Sets up GitHub authentication for agents using git or the gh CLI, covering HTTPS tokens, SSH keys, and detection flows.
Tags
Updated: 2026-09-19Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Detect available authentication methods
- Configure git HTTPS token authentication
- Configure git SSH key authentication
- Configure git user identity
- Authenticate with gh CLI
- Extract GitHub token for API requests
Inputs
- GitHub personal access token
- GitHub username and email
- SSH public and private keys
Outputs
- Configured git global credentials
- Generated SSH key pair
- Authenticated gh CLI session
- Exported GITHUB_TOKEN environment variable
Requirements
- git
- gh CLI (optional)
- curl (optional)
- ssh-keygen (optional)
