Private repos? #287
-
Sorry, yet another question as I try to work through things... 😄 This time it's about using private repos. I'm playing around with the actions on my personal account and I'm trying to pull in a private repository from another account which is an organisation to which I belong and my user account has all the right read/write permissions for the repos there. I've set up a Personal Access Token under on my personal account and added that as a 'secret' to my test repo. I'm now trying something like this:
Everything works until it gets to the private repo, and then it complains that the repo cannot be found (I can copy/paste the 'not found' url and it can be found just fine). Clearly I'm not doing something right here, so any advice would be appreciated, thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Add this step before - name: Add SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.CI_SECRET }} Make sure you have added the ssh key in Also make sure you have added the private repository in {
"repositories": [
{ "type": "vcs", "url": "[email protected]:your_org/privaterepo" },
],
} Update: Removed step to add |
Beta Was this translation helpful? Give feedback.
Add this step before
composer install
Make sure you have added the ssh key in
CI_SECRET
to your organization.Also make sure you have added the private repository in
composer.json
Update: Removed step to add
github.com
toknown_hosts
as webfactory/ssh-agent does that.