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
{{ message }}
Repository navigation
Very silly question: how is it supposed to be used? #91
The example in the readme also has the checkout preceding the ssh-agent setup, and that won't ever work since the keys need to be set up when the checkout happens, not before. So I'm a bit baffled as to what this is supposed to be doing...
You are right that the README example has the actions/checkout before this action. That’s because usually, you use actions/checkout to clone the repo itself which does not need extra SSH keys 🔑. Keys are only needed for extra repos, e. g. installed by dependency managers later on.
In your case of Git submodules (which I have never worked with, to be honest) my understanding is you need the SSH keys to clone those. In that case, there should be no problem to add the keys beforeactions/checkout.
You write that actions/checkout modifies the Git config for .insteadOf. That might in fact be a problem when the submodules work using https:// URLs and you need to use more than one key (deployment keys).
Activity
KubaO commentedon Aug 21, 2021
It looks like the checkout action basically undoes the whole thing - the log has this tidbit:
So I guess the trick is not to use the checkout action with submodules, but have a manual
git submodule update --init --recursive...?KubaO commentedon Aug 21, 2021
That actually did the trick.
Update the docs about submodules and action ordering.
mpdude commentedon Aug 27, 2021
You are right that the README example has the
actions/checkoutbefore this action. That’s because usually, you useactions/checkoutto clone the repo itself which does not need extra SSH keys 🔑. Keys are only needed for extra repos, e. g. installed by dependency managers later on.In your case of Git submodules (which I have never worked with, to be honest) my understanding is you need the SSH keys to clone those. In that case, there should be no problem to add the keys before
actions/checkout.You write that
actions/checkoutmodifies the Git config for.insteadOf. That might in fact be a problem when the submodules work usinghttps://URLs and you need to use more than one key (deployment keys).mpdude commentedon Aug 28, 2021
@KubaO could you please try if it is possible to
webfactory/ssh-agentbefore theactions/checkoutactions/checkout?