GitHub Auth Debugger

0•

Diagnoses and resolves credential drift between Git and the GitHub CLI on macOS non-destructively.

GitHub Auth Debugger helps engineers quickly troubleshoot and resolve the classic macOS credential split where standard Git push/pull commands succeed but GitHub CLI (gh) commands fail with keyring or invalid token errors. It incorporates defensive guardrails to detect false positives caused by sandboxed bash shells, audits environment variable collisions and SAML/SSO permission blocks, and standardizes authentication non-destructively using gh auth setup-git without breaking existing keychains or over-engineering credential managers.

Key Features

01Identifies sandbox false positives where gh cannot access macOS Keychain
02Verifies organization permissions, SAML SSO access, and HTTPS remote connectivity
03Pins Git credentials to GitHub CLI via gh auth setup-git to eliminate drift
04Guides human-in-the-loop web OAuth re-authentication without destructive logouts
05Audits competing credential helpers and conflicting GITHUB_TOKEN environment variables
060 GitHub stars

Use Cases

01Resolving 'The token in keyring is invalid' errors in GitHub CLI while Git operations still work
02Unifying macOS Keychain Git credentials with GitHub CLI OAuth tokens after password or token rotation
03Fixing HTTP 403 SAML/SSO authorization errors when accessing protected organization repositories