-
Notifications
You must be signed in to change notification settings - Fork 124
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 support for source/destination ssh keys #22
Conversation
Thanks for contributing, I definitely have encountered the same problem trying to set up ssh deploy keys on multiple repos as GitHub does not allow a key to be reused. However, this is a major breaking change and will need to be test thoroughly with a major version bump, unless you are able to support the existing Btw what are you using for linting README? Prettier? Thanks!! |
Yes Prettier! (I think) Ok I will try to incorporate the |
Yeah. You can probably just add the variable back in, and do if [[ -n "$SSH_PRIVATE_KEY" ]]
then
mkdir -p /root/.ssh
echo "$SSH_PRIVATE_KEY" | sed 's/\\n/\n/g' > /root/.ssh/src_id_rsa
chmod 600 /root/.ssh/src_id_rsa
echo "$SSH_PRIVATE_KEY" | sed 's/\\n/\n/g' > /root/.ssh/dst_id_rsa
chmod 600 /root/.ssh/dst_id_rsa
fi before the src/dest ssh private keys to achieve that. |
action.yml
Outdated
ssh_private_key: | ||
description: SSH key used to authenticate with git clone urls provided (optional if public or https clone url with authentication) | ||
source_ssh_private_key: | ||
description: SSH key used to authenticate with source ssh clone url provided (optional if public or https clone url with authentication) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing to look into: since the default id_rsa
is no longer used, we need to make sure public ssh clone urls still work without a id_rsa
.
Thanks for putting it together and making the updates. I'll need to find some time to test it and will merge once everything is tested. Thank you! In the meantime anyone interested in this feature should be able to use |
Thanks for your contribution. This feature is now available with |
No description provided.