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

Base64 Private key #185

Open
hayesOw opened this issue Jun 19, 2023 · 1 comment
Open

Base64 Private key #185

hayesOw opened this issue Jun 19, 2023 · 1 comment

Comments

@hayesOw
Copy link

hayesOw commented Jun 19, 2023

Would it be possible to provide the private key in base64, i think this would be useful when using act to run the actions locally. You can load all secrets from a file with .env format and its hard to put the private key in there

@cmuench
Copy link

cmuench commented Aug 31, 2023

@hayesOw I had the same issue. Found a hint in act manual about multiline secrets.
https://nektosact.com/beginner/index.html#envsecrets-files-structure

A line break has to be a string \n.
I tested it and it works.

You can convert a key file with this command:

sed ':a;N;$!ba;s/\n/\\n/g' ssh-key-file

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

No branches or pull requests

2 participants