diff --git a/pkg/controllers/localbuild/controller.go b/pkg/controllers/localbuild/controller.go index bcc691e1..e6d9c8bb 100644 --- a/pkg/controllers/localbuild/controller.go +++ b/pkg/controllers/localbuild/controller.go @@ -669,7 +669,7 @@ func (r *LocalbuildReconciler) extractGiteaAdminSecret(ctx context.Context) (str } func (r *LocalbuildReconciler) updateGiteaDevPassword(ctx context.Context, adminPassword string) (error, string) { - client, err := gitea.NewClient(r.GiteaBaseUrl(r.Config), gitea.SetHTTPClient(util.GetHttpClient()), + client, err := gitea.NewClient(util.GiteaBaseUrl(r.Config), gitea.SetHTTPClient(util.GetHttpClient()), gitea.SetBasicAuth("giteaAdmin", adminPassword), gitea.SetContext(ctx), ) if err != nil {