Expand description
Centralized GitHub token resolution from env vars, config, and the gh CLI.
Out of the box, TokenResolver::default() works with just gh auth login, no extra config needed.
Resolution order:
GH_TOKENenvironment variableGITHUB_TOKENenvironment variablegh.auth.tokenconfig valuegh auth tokenCLI (viaallow_gh_fallback = true)
Structs§
- Token
Resolver - Centralized token resolver for GitHub authentication.
Functions§
- shared
- Get the process-wide shared token resolver.