Skip to content

Commit 4f9b372

Browse files
committed
fix env variable name
1 parent f7e044d commit 4f9b372

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/utils/github.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (gh DiggerGithubRealClientProvider) Get(githubAppId int64, installationId i
112112
func (gh DiggerGithubRealClientProvider) FetchCredentials(githubAppId string) (string, string, string, string, error) {
113113
clientId := os.Getenv("GITHUB_APP_CLIENT_ID")
114114
clientSecret := os.Getenv("GITHUB_APP_CLIENT_SECRET")
115-
webhookSecret := os.Getenv("GITHUB_APP_WEBHOOK_SECRET")
115+
webhookSecret := os.Getenv("GITHUB_WEBHOOK_SECRET")
116116
privateKeyb64 := os.Getenv("GITHUB_APP_PRIVATE_KEY_BASE64")
117117

118118
if clientId == "" || clientSecret == "" || webhookSecret == "" {

ee/backend/providers/github/providers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (gh DiggerGithubEEClientProvider) Get(githubAppId int64, installationId int
9898
func (gh DiggerGithubEEClientProvider) FetchCredentials(githubAppId string) (string, string, string, string, error) {
9999
clientId := os.Getenv("GITHUB_APP_CLIENT_ID")
100100
clientSecret := os.Getenv("GITHUB_APP_CLIENT_SECRET")
101-
webhookSecret := os.Getenv("GITHUB_APP_WEBHOOK_SECRET")
101+
webhookSecret := os.Getenv("GITHUB_WEBHOOK_SECRET")
102102
privateKeyb64 := os.Getenv("GITHUB_APP_PRIVATE_KEY_BASE64")
103103

104104
if clientId != "" && clientSecret != "" && webhookSecret != "" && privateKeyb64 != "" {

0 commit comments

Comments
 (0)