chore(auth): allow set password and private key at same time. (#226)

This commit is contained in:
Bo-Yi Wu authored and GitHub committed 2023-02-28 17:11:47 +08:00
1 parent c1965ddd25
commit 7bf58514db
2 files changed
+21 -1

No files matched your search

+20
View File
@@ -14,6 +14,26 @@ jobs:
- name: checkout
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
uses: ./
with: