Check whether a GitHub PAT is set in the environment.
Checks GITHUB_PAT, GITHUB_TOKEN, and GH_TOKEN.
GITHUB_PAT
GITHUB_TOKEN
GH_TOKEN
True if any of the three environment variables is set.
True
bool
Examples
>>> isinstance(has_github_pat(), bool) True