-
Notifications
You must be signed in to change notification settings - Fork 255
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
Need a way to pass array of keys instead of one #7
Need a way to pass array of keys instead of one #7
Comments
@kalekseev do you have an example for an action that takes array arguments? |
Maybe dump all the keys into one var and since they have delimiters anyway it'd be easy to split those inside of the action. |
Have you tried putting multiple keys into the secret at once? Maybe |
One secret can be 64 KB max: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets#limits-for-secrets. I tried |
Believe I'm also facing similar issue. Although, I'm no expert on SSH and how this process is working under the hood. I have 3 private repos that are needed to build a project with. I had one of them configured and everything was working well. However, I can't reuse the key on the 2 remaining private repos since it's already in use as a Deploy Key. Maybe I'm going about the SSH key approach wrong though 🤔 . Would being able to pass different secret keys fix this by being able to pull the remaining private repos? I'm looking into the machine user approach also which mentions ONE key being needed, however, I haven't tested that so I cannot confirm if that will work or not. |
@mpdude alternative way to implement this would be to publish SSH agent socket and have end-users pass it as an input invoking this action multiple times in a row. The action would need to be changed to skip starting the new agent then. @bradmartin a workaround for you would be to do something like |
Thank you for that @webknjaz - I will try that soon today 👍 |
@webknjaz Do you think 64KB is a limit of practical relevance? Thinking about splitting the key/secret at some marker in JavaScript, then passing each one to the agent. |
Please give #14 a try and leave a note over there if it works for you. |
You can fit 16-18 4096-bit keys so yes, it's totally fine.
No need. Each key starts with
We've migrated away from using pre-defined keys recently so you'll have to wait for somebody else to test it. But I'll try to leave a code review there. |
Yeah, my intention was to use |
Yep, already noticed |
Implemented in #14. |
…/actions/checkout-3 Bump actions/checkout from 2 to 3
No description provided.
The text was updated successfully, but these errors were encountered: