Skip to content

Commit 50432b8

Browse files
authored
fix: pass git auth config read from environment through server (#6540)
1 parent 1b3b0ea commit 50432b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/server.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,9 @@ flags, and YAML configuration. The precedence is as follows:
650650
return xerrors.Errorf("read git auth providers from env: %w", err)
651651
}
652652

653+
cfg.GitAuthProviders.Value = append(cfg.GitAuthProviders.Value, gitAuthEnv...)
653654
gitAuthConfigs, err := gitauth.ConvertConfig(
654-
append(cfg.GitAuthProviders.Value, gitAuthEnv...),
655+
cfg.GitAuthProviders.Value,
655656
cfg.AccessURL.Value(),
656657
)
657658
if err != nil {

0 commit comments

Comments
 (0)