ssh-agent icon indicating copy to clipboard operation
ssh-agent copied to clipboard

Base64 Private key

Open hayesOw opened this issue 2 years ago • 1 comments

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

hayesOw avatar Jun 19 '23 10:06 hayesOw

@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

cmuench avatar Aug 31 '23 18:08 cmuench