Skip to content

Commit 7bf5851

Browse files
authored
chore(auth): allow set password and private key at same time. (#226)
1 parent c1965dd commit 7bf5851

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ jobs:
1414
- name: checkout
1515
uses: actions/checkout@v1
1616

17+
- name: correct password but wrong key
18+
uses: ./
19+
with:
20+
host: ${{ secrets.HOST }}
21+
username: ${{ secrets.USERNAME }}
22+
password: ${{ secrets.PASSWORD }}
23+
key: "1234"
24+
port: ${{ secrets.PORT }}
25+
script: whoami
26+
27+
- name: wrong password but correct key
28+
uses: ./
29+
with:
30+
host: ${{ secrets.HOST }}
31+
username: ${{ secrets.USERNAME }}
32+
password: "abcdef"
33+
key: ${{ secrets.KEY }}
34+
port: ${{ secrets.PORT }}
35+
script: whoami
36+
1737
- name: executing remote ssh commands using password
1838
uses: ./
1939
with:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM appleboy/drone-ssh:1.6.8-linux-amd64
1+
FROM appleboy/drone-ssh
22

33
COPY entrypoint.sh /entrypoint.sh
44
RUN chmod +x /entrypoint.sh

0 commit comments

Comments
 (0)