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 am one of the persons maintaining https://github.com/webfactory/ssh-agent, an action to set up the ssh-agent with keys stored in GHA secrets. Once keys are loaded into the SSH agent, git operations and also various package managers that build on top of it should be able to clone other private repos just fine.
In the case of using GitHub Deployment Keys – which are scoped to a single repository – we need a bit of trickery to make git use the right SSH key depending on the repo that shall be cloned. Details are here: https://github.com/webfactory/ssh-agent#support-for-github-deploy-keys.
Now there are reports (webfactory/ssh-agent#91, webfactory/ssh-agent#92) that when using the actions/checkoutsubmodules switch, the webfactory/ssh-agent action stops working or it depends on the order in which actions/checkout and webfactory/ssh-agent are executed. I am not sure if that applies to scenarios with multiple deployment keys only, or to cloning repositories in general.
... although I still don't see the full picture yet 🧩. There is also this discussion.
I am opening this issue to discuss how we could best co-ordinate between both actions (or to learn what we're doing wrong on our side?).
Ideally, webfactory/ssh-agent should be usable both before and after actions/checkout.
And, when having to clone submodules from private repos with SSH deploy keys, it should be possible to have it beforeactions/checkout, specify: submodules: true|recursive for actions/checkout and have submodules cloned with the registered SSH keys without further ado.
The text was updated successfully, but these errors were encountered:
Hey there 👋🏻 ,
I am one of the persons maintaining https://github.com/webfactory/ssh-agent, an action to set up the
ssh-agent
with keys stored in GHA secrets. Once keys are loaded into the SSH agent,git
operations and also various package managers that build on top of it should be able to clone other private repos just fine.In the case of using GitHub Deployment Keys – which are scoped to a single repository – we need a bit of trickery to make
git
use the right SSH key depending on the repo that shall be cloned. Details are here: https://github.com/webfactory/ssh-agent#support-for-github-deploy-keys.Now there are reports (webfactory/ssh-agent#91, webfactory/ssh-agent#92) that when using the
actions/checkout
submodules
switch, thewebfactory/ssh-agent
action stops working or it depends on the order in whichactions/checkout
andwebfactory/ssh-agent
are executed. I am not sure if that applies to scenarios with multiple deployment keys only, or to cloning repositories in general.One hint given in webfactory/ssh-agent#91 (comment) is that this action here does
... although I still don't see the full picture yet 🧩. There is also this discussion.
I am opening this issue to discuss how we could best co-ordinate between both actions (or to learn what we're doing wrong on our side?).
Ideally,
webfactory/ssh-agent
should be usable both before and afteractions/checkout
.And, when having to clone submodules from private repos with SSH deploy keys, it should be possible to have it before
actions/checkout
, specify:submodules: true|recursive
foractions/checkout
and have submodules cloned with the registered SSH keys without further ado.The text was updated successfully, but these errors were encountered: