The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pipelines composer install that pulls in another private repo

Lee Booth
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 23, 2019

I have a PHP laravel project that is set up with Bitbucket Pipelines. 

However, the project in question has a dependency on another one of my laravel projects (specifcally a laravel pacakge). 

 

The problem is, when I run the composer install step specified in my bitbucket-pipelines.yml file it fails to pull down the repository.  With the error: 

"Permission denied (publickey).  fatal: Could not read from remote repository."

 

Does anyone know where I am supposed to add the SSH key  that needs generating? I.e. in the target repo or current. And once that key is added how do I ensure the pipeline can use that key to access the package repo? 

 

Cheers

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 4, 2019

Hi Lee,

You can follow the instructions here to set up an SSH key to be injected into your Pipelines build here: https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html

Once you've done that, you need to add the public key to wherever your Laravel package is so that your build is authentication to talk to that server.

If the other Laravel package is also a Bitbucket repository, you can add the Pipelines public key as an access key on that repository.

Thanks,

Phil

TAGS
AUG Leaders

Atlassian Community Events