File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -361,12 +361,12 @@ func Run(ctx context.Context, options Options) error {
361
361
}
362
362
363
363
if options .GitUsername != "" || options .GitPassword != "" {
364
- gitURL , err := url . Parse ( options . GitURL )
365
- if err != nil {
366
- return fmt . Errorf ( "parse git url: %w" , err )
367
- }
368
- gitURL . User = url . UserPassword ( options . GitUsername , options . GitPassword )
369
- options . GitURL = gitURL . String ()
364
+ // Previously, we had been placing credentials in the URL
365
+ // as well as setting githttp.BasicAuth.
366
+ // This was removed as it would leak the credentials used
367
+ // to clone the repo into the resulting workspace.
368
+ // Users may still hard-code credentials directly into the
369
+ // git URL themselves, if required.
370
370
371
371
cloneOpts .RepoAuth = & githttp.BasicAuth {
372
372
Username : options .GitUsername ,
You can’t perform that action at this time.
0 commit comments