fatal: could not read password for 'https://[PAT]@tfs.**.com' no such device or address

130 Views Asked by At

I'm building a Tekton task on Openshift pipelines and trying to clone the source code from my GIT repository. I'm cloning the repo in my script using the below

git clone 'https://[PAT]@tfs.**.com/[org]/[project]/_git/[repo]'

but always getting the error below

fatal: could not read password for 'https://[PAT]@tfs.**.com' no such device or address

I created a secret with the username and password(PAT) and added the secret to pipeline service account but still getting the same error. I searched a lot about the issue and nothing from all the solutions I found worked with me.

0

There are 0 best solutions below