Skip to content
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 option use-base64 for encoded key #192

Closed
wants to merge 1 commit into from

Conversation

sheng-kenbun
Copy link

Hello,

we try to use act to run a workflow locally. The problem is, in act we can not input the ssh-key as secret as multi-lines using the .actrc config file. One solution is, the ssh-key is base64 encoded and can be passed to act using the .actrc file. From the action ssh-agent the string will be base64 decoded before it is passed to the command ssh-agent - ....

This behaviour is controlled by an additional option use-base64.

Please review the changes and make a decision ob this PR should be merged. Thanks!

Best regards,
Li Sheng

@ricbir
Copy link

ricbir commented Feb 23, 2024

It would be great to have this

@janopae
Copy link
Member

janopae commented Jan 9, 2025

Hey, thanks for your contribution, and sorry for taking a while to review this.

To me, this seems more like a shortcoming in Act you try to work around here, isn't it? As Act and ssh-agent are both open source projects, I think it would be preferable to resolve the issue on Act's side.

Act has an issue for supporting multiline secrets, and they claim to have resolved it by supporting environment variables from an .env file: nektos/act#123

If that doesn't solve your problem, I'd still much rather recommend opening a new issue at Act and maybe submitting a patch there.

@janopae janopae closed this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants