I have stored my SSH password in the GitHub Secret. With the keyname PASSWORD
. When I use it with ${{secrets.PASSWORD}} I get no output. And therefore no access to the server via SSH. What do I have to do to use my secret as password?
- name: Run a multi-line script
run: |
echo Echo my secret
echo ${{secrets.PASSWORD}}
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: '12234.myserver.com'
username: 'ssh-user'
password: ${{secrets.PASSWORD}}
port: '22'
script: |
cd www/htdocs/src/