You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a React project that has two private repositories as dependencies. I created two SSH keys, added private keys as secrets and added public keys as deploy keys in the dependency repository.
For some reason, the connection works only for the first key. I have tried putting SSH_PRIVATE_KEY2 first, and it worked for the repository that has SSH_PRIVATE_KEY2 public key counterpart, then I put SSH_PRIVATE_KEY1 first, and it worked for the repository that has SSH_PRIVATE_KEY1 public key counterpart.
Is someone else having the same issue?
The text was updated successfully, but these errors were encountered:
Yep, also having no luck. Even after following steps here to align git config and ssh config. I can clearly see by executing:
RUN --mount=type=ssh GIT_SSH_COMMAND="ssh -v" pip install git+ssh://[email protected]/owner/repo-b
that it is still trying to use the public deploy key from repo-a to authenticate to github for repository b. Really frustrating - been stuck on this for literally days and I think I'm as far as I can go.
I have a React project that has two private repositories as dependencies. I created two SSH keys, added private keys as secrets and added public keys as deploy keys in the dependency repository.
This is the code from the pipeline
For some reason, the connection works only for the first key. I have tried putting SSH_PRIVATE_KEY2 first, and it worked for the repository that has SSH_PRIVATE_KEY2 public key counterpart, then I put SSH_PRIVATE_KEY1 first, and it worked for the repository that has SSH_PRIVATE_KEY1 public key counterpart.
Is someone else having the same issue?
The text was updated successfully, but these errors were encountered: