I am trying to clone another private repo in Github actions. I have set SECRET_USER and SECRET_PASSWORD in the secrets of the repo I'm running the actions on. In actions I'm running the command
git clone https://$SECRET_USER:$SECRET_PASSWORD@github.com/other-organization/other-repo.git
but getting the error
Cloning into 'other-repo'...
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/other-organization/other-repo.git/'
##[error]Process completed with exit code 128.
in Github Actions although I've verified that the user can access https://github.com/other-organization/other-repo (which is obviously not the real URL of the internal repo).