I have a shell script that checks out separate repository and makes changes to it.
That same script works fine when invoked via merge to development hook.
But when I try to run it using custom pipeline I get following error:
<span>Checking out repositories</span>
<span>Cloning into 'my-repository'...</span>
<span>Warning: Permanently added the ECDSA host key for IP address 'x.x.x.x' to the list of known hosts.</span>
<span>Permission denied (publickey).</span>
<span>fatal: Could not read from remote repository.</span>
<span>Please make sure you have the correct access rights</span>
<span>and the repository exists.</span>
Why could this be happening?