Skip to main content

detect_github_token

Function detect_github_token 

Source
pub fn detect_github_token() -> Option<String>
Expand description

Detect GitHub token from multiple sources.

Detection order (highest priority first):

  1. GITHUB_TOKEN environment variable
  2. GH_TOKEN environment variable
  3. github.token in config files
  4. gh auth token command output