Skip to content

Commit 21fdf0b

Browse files
Add TokenVariable to github (#49)
1 parent a444520 commit 21fdf0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

github/auth.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ import (
3030
const (
3131
// DefaultDomain specifies the default domain used as the backend.
3232
DefaultDomain = "github.com"
33+
// TokenVariable is the common name for the environment variable
34+
// containing a GitHub authentication token.
35+
TokenVariable = "GITHUB_TOKEN" // #nosec G101
3336
)
3437

3538
// ClientOption is the interface to implement for passing options to NewClient.

0 commit comments

Comments
 (0)