Replies: 1 comment
-
Reported a bug #3887. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The git-clone task fails if the secret associated with the service account used to run the task contains a backslash "" in the username. For example, if the username of the secret contains a value "domain\firstname.lastname", the git-clone task will throw the following error:
Error running git [init /workspace/output/]: exit status 128\nfatal: bad config line 4 in file /tekton/home/.gitconfig\n","stacktrace":"github.com/tektoncd/pipeline/pkg/git.run\n\t/opt/app-root/src/go/src/github.com/tektoncd/pipeline/pkg/git/git.go:47\ngithub.com/tektoncd/pipeline/pkg/git.Fetch\n\t/opt/app-root/src/go/src/github.com/tektoncd/pipeline/pkg/git/git.go:74\nmain.main\n\t/opt/app-root/src/go/src/github.com/tektoncd/pipeline/cmd/git-init/main.go:52\nruntime.main\n\t/usr/lib/golang/src/runtime/proc.go:203"}
{"level":"fatal","ts":1618348159.1216874,"caller":"git-init/main.go:53","msg":"Error fetching git repository: exit status 128","stacktrace":"main.main\n\t/opt/app-root/src/go/src/github.com/tektoncd/pipeline/cmd/git-init/main.go:53\nruntime.main\n\t/usr/lib/golang/src/runtime/proc.go:203"}
A workaround would be to use a different form of the username if applicable. For example, the following format would be handled successfully by the task: "[email protected]".
Beta Was this translation helpful? Give feedback.
All reactions