% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Require-helpers.R
\name{getGitCredsToken}
\alias{getGitCredsToken}
\title{Find a GitHub token, from the git credential store or the environment}
\usage{
getGitCredsToken()
}
\value{
The \code{"token <pat>"} string \code{\link[=GETWauthThenNonAuth]{GETWauthThenNonAuth()}} expects, or \code{NULL}.
}
\description{
\code{gitcreds::gitcreds_get()} reads the \emph{git credential store} only; it does not
consult \code{GITHUB_PAT} or \code{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.
}
\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.
}
\keyword{internal}
