Sigfrid PRO said over 1 year ago on Kamal in GitHub Actions :
Hi David,
Have you ever tried to deploy using Kamal 2 using a GH action? If so, how do you specify the SSH key? In my deploy.yml, I have 

key_data: [<%= ENV["SSH_PRIVATE_KEY"] %>]

In my workflow

env:      
  SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

And my secret looks like


-----BEGIN OPENSSH PRIVATE KEY-----
long string here
-----END OPENSSH PRIVATE KEY-----


However, when I run the action, I get 

ERROR (ArgumentError): Exception while executing on host 1.2.3.4: Expected *** at start of private key

Thanks.