Closed
Description
I use:
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.ANSIBLE_MANAGEMENT_IP }}
username: ${{ secrets.ANSIBLE_MANAGEMENT_USER }}
key: ${{ secrets.ANSIBLE_MANAGEMENT_SSH_KEY }}
script: |
debug logs shows:
##[debug]Evaluating: secrets.ANSIBLE_MANAGEMENT_IP
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'ANSIBLE_MANAGEMENT_IP'
##[debug]=> null
##[debug]Result: null
##[debug]Evaluating: secrets.ANSIBLE_MANAGEMENT_USER
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'ANSIBLE_MANAGEMENT_USER'
##[debug]=> null
##[debug]Result: null
##[debug]Evaluating: secrets.ANSIBLE_MANAGEMENT_SSH_KEY
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'ANSIBLE_MANAGEMENT_SSH_KEY'
##[debug]=> null
##[debug]Result: null
[...]
2025/02/05 13:10:37 Error: missing server host
##[debug]Docker Action run completed with exit code 1
Somehow secret with ssh key, user and machine's ip are evaluated as "null". In another repository I also use the same part:
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.ANSIBLE_MANAGEMENT_IP }}
username: ${{ secrets.ANSIBLE_MANAGEMENT_USER }}
key: ${{ secrets.ANSIBLE_MANAGEMENT_SSH_KEY }}
script: |
and there is no problem.