|
|
@ -14,6 +14,26 @@ jobs:
|
|
|
|
- name: checkout
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: correct password but wrong key
|
|
|
|
|
|
|
|
uses: ./
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
|
|
|
|
password: ${{ secrets.PASSWORD }}
|
|
|
|
|
|
|
|
key: "1234"
|
|
|
|
|
|
|
|
port: ${{ secrets.PORT }}
|
|
|
|
|
|
|
|
script: whoami
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: wrong password but correct key
|
|
|
|
|
|
|
|
uses: ./
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
|
|
|
|
password: "abcdef"
|
|
|
|
|
|
|
|
key: ${{ secrets.KEY }}
|
|
|
|
|
|
|
|
port: ${{ secrets.PORT }}
|
|
|
|
|
|
|
|
script: whoami
|
|
|
|
|
|
|
|
|
|
|
|
- name: executing remote ssh commands using password
|
|
|
|
- name: executing remote ssh commands using password
|
|
|
|
uses: ./
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|