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
Opening a separate issue based on discussion from #63
It would be really nice if checking out with a SSH key would also be supported.
It would make things a bit more secure. With a PAT you basically give access to all the repos that user has access. With a SSH key you could give access only to the specific repo the SSH key is setup for.
It can be a new input option to the checkout action that would temporarily (for the duration of the checkout action) create the ~/.ssh/id_rsa file with what was provided as input, use that for git clone and then restore the previous ~/.ssh/id_rsa (if any) after current checkout task is done.
Or maybe there's a better option.
Reacted by Yuriy Boev, Chen, Tommi Vainikainen, Julian Waller, Peter Evans, Matt Lord, danielginovker, Mark Stosberg and Morgan Schoen
This would be great for working with submodules too, currently when updating the submodules pulls up the http GitHub user credentials rather than using the SSH key. When working with the repository locally.
@neyb the SSH key isnt configured globally for the user. The SSH command is overwritten in the local git config. You could get it from the config and export to an env var if needed.
Activity
chrispat commentedon Dec 5, 2019
I think this could be very useful to have.
gunnsth commentedon Dec 5, 2019
This would be great for working with submodules too, currently when updating the submodules pulls up the http GitHub user credentials rather than using the SSH key. When working with the repository locally.
ericsciple commentedon Feb 13, 2020
proposed here: #156
ericsciple commentedon Mar 6, 2020
related to #178 too
ericsciple commentedon Mar 11, 2020
A new input
ssh-keyis in master now. Gathering feedback on this issue before moving v2 tag forward.neyb commentedon Mar 15, 2020
this is issue is not dedicated to submodules, while #176 is. So I decide to give a feedback here :
edit: my bad : i was using @v2, and its only on @master
neyb commentedon Mar 15, 2020
still got a problem :
https://github.com/neyb/armor-hunter/runs/508953664#step:7:28
the ssk key seems not to accessible for other repositories.
this should cause submodules to fail I think
ericsciple commentedon Mar 19, 2020
@neyb the SSH key isnt configured globally for the user. The SSH command is overwritten in the local git config. You could get it from the config and export to an env var if needed.
export GIT_SSH_COMMAND=$(git config --local --get core.sshCommand)ericsciple commentedon Mar 19, 2020
Thanks all for the feedback! I updated V2 to include the recent submodule/SSH changes from master.