mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix: pass git auth config read from environment through server (#6540)
This commit is contained in:
+2
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user