From 4f9b3720966f91818e92d16fe3a96aed403cdb4d Mon Sep 17 00:00:00 2001 From: motatoes Date: Wed, 13 Nov 2024 22:38:08 +0000 Subject: [PATCH] fix env variable name --- backend/utils/github.go | 2 +- ee/backend/providers/github/providers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/utils/github.go b/backend/utils/github.go index 63df2af4..e9b45507 100644 --- a/backend/utils/github.go +++ b/backend/utils/github.go @@ -112,7 +112,7 @@ func (gh DiggerGithubRealClientProvider) Get(githubAppId int64, installationId i func (gh DiggerGithubRealClientProvider) FetchCredentials(githubAppId string) (string, string, string, string, error) { clientId := os.Getenv("GITHUB_APP_CLIENT_ID") clientSecret := os.Getenv("GITHUB_APP_CLIENT_SECRET") - webhookSecret := os.Getenv("GITHUB_APP_WEBHOOK_SECRET") + webhookSecret := os.Getenv("GITHUB_WEBHOOK_SECRET") privateKeyb64 := os.Getenv("GITHUB_APP_PRIVATE_KEY_BASE64") if clientId == "" || clientSecret == "" || webhookSecret == "" { diff --git a/ee/backend/providers/github/providers.go b/ee/backend/providers/github/providers.go index f5f73b82..47a83679 100644 --- a/ee/backend/providers/github/providers.go +++ b/ee/backend/providers/github/providers.go @@ -98,7 +98,7 @@ func (gh DiggerGithubEEClientProvider) Get(githubAppId int64, installationId int func (gh DiggerGithubEEClientProvider) FetchCredentials(githubAppId string) (string, string, string, string, error) { clientId := os.Getenv("GITHUB_APP_CLIENT_ID") clientSecret := os.Getenv("GITHUB_APP_CLIENT_SECRET") - webhookSecret := os.Getenv("GITHUB_APP_WEBHOOK_SECRET") + webhookSecret := os.Getenv("GITHUB_WEBHOOK_SECRET") privateKeyb64 := os.Getenv("GITHUB_APP_PRIVATE_KEY_BASE64") if clientId != "" && clientSecret != "" && webhookSecret != "" && privateKeyb64 != "" {