Documentation
¶
Overview ¶
Package githubauth provides shared GitHub API credentials.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveToken ¶
func ResolveToken() string
ResolveToken prefers the server configuration, then the legacy environment settings.
func SetToken ¶
func SetToken(token string)
SetToken replaces the global configured token, including clearing it on reload.
func TokenForURL ¶
TokenForURL never exposes the shared credential outside the HTTPS GitHub API.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.