added debug message

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones 2021-12-22 15:43:45 -07:00
parent 2b95bf1536
commit 044c464289
No known key found for this signature in database
GPG Key ID: CFB3A382EB166F4C

View File

@ -55,6 +55,7 @@ func (c gitPullTask) Run(ctx context.Context, pctx *plancontext.Context, s solve
return nil, err return nil, err
} }
lg.Debug().Str("username", gitPull.Auth.Username).Str("password", "***").Msg("using username:password auth")
remote.User = url.UserPassword(gitPull.Auth.Username, strings.TrimSpace(pwdSecret.PlainText())) remote.User = url.UserPassword(gitPull.Auth.Username, strings.TrimSpace(pwdSecret.PlainText()))
gitPull.Remote = remote.String() gitPull.Remote = remote.String()
} else if authToken := v.Lookup("auth.authToken"); plancontext.IsSecretValue(authToken) { } else if authToken := v.Lookup("auth.authToken"); plancontext.IsSecretValue(authToken) {