Skip to content

Commit

Permalink
fix env variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Nov 13, 2024
1 parent f7e044d commit 4f9b372
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/utils/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand Down
2 changes: 1 addition & 1 deletion ee/backend/providers/github/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down

0 comments on commit 4f9b372

Please sign in to comment.