Expected behavior:
Github actions pipeline is triggered which then proceeds to build a docker image out of a dockerfile.
This dockerfile contains an npm install step that installs required packages listed in a package.json file.
One of the dependencies is a private github repo so it is required using the following format:
"packageName": "git+https://<auth token>:x-oauth-basic@github.com/orgName/packageName.git"
It should be installed without any issues and keep going with the dockerfile build process
Issue:
The dockerfile builds without issues locally but when I try to build it using github actions it outputs the following error :
npm ERR! code 128
npm ERR! command failed
npm ERR! command git ls-remote ssh://git@github.com/orgName/packageName.git
npm ERR! error: cannot run ssh: No such file or directory
npm ERR! fatal: unable to fork
Notes:
The whole docker image build process runs without issue locally so I really do not think it is a docker issue and more of a github restriction issue