diff --git a/pkg/build/builder/cmd/scmauth/password.go b/pkg/build/builder/cmd/scmauth/password.go
index <HASH>..<HASH> 100644
--- a/pkg/build/builder/cmd/scmauth/password.go
+++ b/pkg/build/builder/cmd/scmauth/password.go
@@ -84,7 +84,7 @@ func (u UsernamePassword) Setup(baseDir string) error {
 	usernamePasswordURL := u.SourceURL
 	usernamePasswordURL.User = url.UserPassword(username, password)
 	fmt.Fprintf(gitconfig, UserPassGitConfig, gitcredentials.Name())
-	fmt.Fprintf(gitcredentials, usernamePasswordURL.String())
+	fmt.Fprintf(gitcredentials, "%s", usernamePasswordURL.String())
 
 	return ensureGitConfigIncludes(gitconfig.Name())
 }
Fix output of git basic credentials in builder