Skip to content

Commit

Permalink
add support GITHUB_TOKEN env var (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
speier authored Oct 2, 2023
1 parent f715904 commit 10be63c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/providers/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ func newGitHub(u *url.URL) (Provider, error) {
}

token := os.Getenv("GITHUB_AUTH_TOKEN")
if len(token) == 0 {
token = os.Getenv("GITHUB_TOKEN")
}

// GHES client
gbu := os.Getenv("GHES_BASE_URL")
Expand Down

0 comments on commit 10be63c

Please sign in to comment.