goalie.has_github_pat

goalie.has_github_pat() bool

Check whether a GitHub PAT is set in the environment.

Checks GITHUB_PAT, GITHUB_TOKEN, and GH_TOKEN.

Returns:

True if any of the three environment variables is set.

Return type:

bool

Examples

>>> isinstance(has_github_pat(), bool)
True