Find a GitHub token, from the git credential store or the environment
Source:R/Require-helpers.R
getGitCredsToken.Rdgitcreds::gitcreds_get() reads the git credential store only; it does not
consult GITHUB_PAT or GITHUB_TOKEN. CI runners routinely set the
environment variable and configure no credential helper, so relying on
gitcreds alone left API calls unauthenticated and subject to GitHub's
60-request/hour per-IP limit – which surfaces as intermittent HTTP 403s
spread across whichever job happens to exhaust the quota.
Value
The "token <pat>" string GETWauthThenNonAuth() expects, or NULL.