-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add suport for checking out with SSH key #72
Comments
I think this could be very useful to have. |
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. |
proposed here: #156 |
related to #178 too |
A new input |
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. |
@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.
|
Thanks all for the feedback! I updated V2 to include the recent submodule/SSH changes from master. |
Hi,
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 forgit clone
and then restore the previous~/.ssh/id_rsa
(if any) after current checkout task is done.Or maybe there's a better option.
The text was updated successfully, but these errors were encountered: