You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
no warning in the pipelinerun log when i use the task “git-clone” to pull the source code from my gitlab server using ssh protocol
Actual Behavior
get a warning in the pipelinerun log when i use the task “git-clone” to pull the source code from my gitlab server using ssh protocol,but the source code was pulled successfully
[fetch-source : clone] {"level":"warn","ts":1700370900.1551552,"caller":"git/git.go:271","msg":"URL(\"ssh://[email protected]:1022/yyy/zzz.git\") appears to need SSH authentication but no SSH credentials have been provided"}
Steps to Reproduce the Problem
1.the pipeline version is v0.52.1
2.the “git-clone” task version is 0.9
3.the git-init image is "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.40.2"
4. follow the steps in the https://tekton.dev/docs/how-to-guides/clone-repository/
Additional Info
i am not sure the real reason,because i am not familiar with the Go language and the pipeline source code. i can only guess the problem maybe from the source codes below:
Expected Behavior
no warning in the pipelinerun log when i use the task “git-clone” to pull the source code from my gitlab server using ssh protocol
Actual Behavior
get a warning in the pipelinerun log when i use the task “git-clone” to pull the source code from my gitlab server using ssh protocol,but the source code was pulled successfully
[fetch-source : clone] {"level":"warn","ts":1700370900.1551552,"caller":"git/git.go:271","msg":"URL(\"ssh://[email protected]:1022/yyy/zzz.git\") appears to need SSH authentication but no SSH credentials have been provided"}
Steps to Reproduce the Problem
1.the pipeline version is v0.52.1
2.the “git-clone” task version is 0.9
3.the git-init image is "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.40.2"
4. follow the steps in the https://tekton.dev/docs/how-to-guides/clone-repository/
Additional Info
i am not sure the real reason,because i am not familiar with the Go language and the pipeline source code. i can only guess the problem maybe from the source codes below:
os.Stat(filepath.Join(credsDir, ".ssh"))
https://github.com/tektoncd/pipeline/blob/a172b76d9055fec57a61f7955cd33869aaa18698/pkg/git/git.go#L262-L273
validateGitAuth(logger, pipeline.CredsDir, spec.URL)
https://github.com/tektoncd/pipeline/blob/a172b76d9055fec57a61f7955cd33869aaa18698/pkg/git/git.go#L74-L86
CredsDir = "/tekton/creds" // #nosec
https://github.com/tektoncd/pipeline/blob/23581c5f9f67f6855f1956775ca8be03ba1ed86f/pkg/apis/pipeline/paths.go#L17-L31
The text was updated successfully, but these errors were encountered: