Skip to contents

gitcreds::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.

Usage

getGitCredsToken()

Value

The "token <pat>" string GETWauthThenNonAuth() expects, or NULL.

Details

The credential store still wins when it has something, so behaviour on a developer machine is unchanged; the environment is only a fallback.

Exported for the SpaDES packages, which authenticate GitHub API calls the same way. Not part of the advertised API.