From 10be63cb95b394637d914181b45b9171b90a9269 Mon Sep 17 00:00:00 2001 From: Kalman Speier Date: Mon, 2 Oct 2023 17:55:46 +0200 Subject: [PATCH] add support GITHUB_TOKEN env var (#176) --- pkg/providers/github.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/providers/github.go b/pkg/providers/github.go index ee80adb..87cda5f 100644 --- a/pkg/providers/github.go +++ b/pkg/providers/github.go @@ -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")