How can I pass secrets to the SSH command?
Running the following command doesn't output MY_SECRET as an environment variable.
Thanks
- name: Start container services
uses: garygrossgarten/github-action-ssh@release
env:
MY_SECRET: ${{ secrets.MY_SECRET }}
with:
host: ${{ steps.tf_out.outputs.vm_ip }}
username: terraform
privateKey: ${{ secrets.TF_KEY }}
command: |
printenv
How can I pass secrets to the SSH command?
Running the following command doesn't output MY_SECRET as an environment variable.
Thanks