-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple private packages from GitHub using GitHub Deploy Keys #5893
Comments
We have the same issue and found this to be related to git clone and ssh key authentication. Git clone will open a ssh connection to Consequently, in your example, git clone will always use We're currently using this gist as a hack to circumvent the issue: https://gist.github.com/vhermecz/4e2ae9468f2ff7532bf3f8155ac95c74 |
https://github.com/webfactory/ssh-agent#support-for-github-deploy-keys explains that it works by playing around with git's insteadOf configuration. That might actually work as of poetry 1.2.0b3 per fixes for #5934 - upgrading is worth a try anyway |
I had the same issue, and have worked around it by downgrading poetry:
|
Looks like web factory is now handling this problem by mapping the right key to the right repo using key comment. |
Same problem here, the action is a thing but if we need to handle this in all the CI builds, this quickly becomes unmaintainable :/ |
Any updates on this? |
-vvv
option).Issue
I want to install 2 private packages from the GitHub repository:
I'm using https://github.com/webfactory/ssh-agent GitHub action to add 2 Deploy Keys.
I'm also following these suggestions regarding multiple deploy keys: https://github.com/webfactory/ssh-agent#support-for-github-deploy-keys
Keys are successfully added and work when just running a simple
git clone git@github.com:my-org/repo-1.git
action.Unfortunately, this setup does not work with
poetry install
. When installing the firstssh-key
will be used andrepo-1
will be installed andrepo-2
will fail with an error similar to this:When using 1 repository and 1 deploy key - everything works as expected.
The text was updated successfully, but these errors were encountered: