Skip to content

Commit 3c0800f

Browse files
authored
Change NIGHTFALL_GITHUB_TOKEN env var name (#3)
* Change var name * Update error msg
1 parent a4ecc45 commit 3c0800f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/nightfalldlp/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
const (
1515
nightfallConfigFileName = ".nightfalldlp/config.json"
1616
githubActionsEnvVar = "GITHUB_ACTIONS"
17-
githubTokenEnvVar = "NIGHTFALL_GITHUB_TOKEN"
17+
githubTokenEnvVar = "GITHUB_TOKEN"
1818
)
1919

2020
// main starts the service process.
@@ -69,7 +69,7 @@ func CreateDiffReviewerClient() (diffreviewer.DiffReviewer, error) {
6969
case usingGithubAction():
7070
githubToken, ok := os.LookupEnv(githubTokenEnvVar)
7171
if !ok {
72-
return nil, errors.New("missing github token in env")
72+
return nil, fmt.Errorf("could not find required %s environment variable", githubTokenEnvVar)
7373
}
7474
return github.NewAuthenticatedGithubService(githubToken), nil
7575
default:

0 commit comments

Comments
 (0)