fix: pass git auth config read from environment through server (#6540)

This commit is contained in:
Ammar Bandukwala
2023-03-09 20:27:54 +00:00
committed by GitHub
parent 1b3b0ea962
commit 50432b89be
+2 -1
View File
@@ -650,8 +650,9 @@ flags, and YAML configuration. The precedence is as follows:
return xerrors.Errorf("read git auth providers from env: %w", err)
}
cfg.GitAuthProviders.Value = append(cfg.GitAuthProviders.Value, gitAuthEnv...)
gitAuthConfigs, err := gitauth.ConvertConfig(
append(cfg.GitAuthProviders.Value, gitAuthEnv...),
cfg.GitAuthProviders.Value,
cfg.AccessURL.Value(),
)
if err != nil {