Skip to content

Private repos? #287

Answered by shivammathur
amnuts asked this question in Q&A / Help
Sep 10, 2020 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Add this step before composer install

- name: Add SSH key
  uses: webfactory/[email protected]
  with:
    ssh-private-key: ${{ secrets.CI_SECRET }}

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

{
  "repositories": [
    { "type": "vcs", "url": "[email protected]:your_org/privaterepo" },
  ],
}

Update: Removed step to add github.com to known_hosts as webfactory/ssh-agent does that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amnuts
Comment options

Answer selected by amnuts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants