My team has a project (call it ProjectAAA) (hosted in bitbucket) which has a dependency on an externally owned and private package (also hosted in bitbucket, call it DependencyBBB). The package.json file for this project looks something like this:
"dependencies": {
"DependencyBBB": "git+https://bitbucket.org/OtherUser/DependencyBBB.git",
} On my computer, I can succesfully "npm install" - because OtherUser has given my account (and only my account) read/write access to DependencyBBB.
In order for ProjectAAA's bitbucket pipeline to clone DependencyBBB (npm install), I assume that the team or ProjectAAA needs read access to the DependencyBBB repository. To do this, I have created an SSH key for ProjectAAA, and sent this to the OtherUser, who has added it to the "Access Keys" for that repository.
ProjectAAA bitbucket pipeline fails with an authentication failure - what other steps are required to enable read access to the DependencyBBB repository?