I’m trying to:
- Store SSH private key (which contains newline characters) in a secret
- Send it to a build step in an environment variable
- Save environment variable into some file
- Use this file in a
ssh -i some_file
command.
After doing that some_file
contains spaces instead of newline characters.
I can not find “official” documentation on using multiline secrets. Is it expected (and documented) behaviour?