Skip to content

Commit c9eebc1

Browse files
authored
chore: support use_insecure_cipher (#57)
1 parent 6b00175 commit c9eebc1

4 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,13 @@ jobs:
9292
script: |
9393
whoami
9494
ls -al
95+
96+
- name: use insecure cipher
97+
uses: ./
98+
with:
99+
host: ${{ secrets.HOST }}
100+
username: ${{ secrets.USERNAME }}
101+
password: ${{ secrets.PASSWORD }}
102+
port: ${{ secrets.PORT }}
103+
script: whoami
104+
use_insecure_cipher: true

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.5.8-linux-amd64
1+
FROM appleboy/drone-ssh:1.5.9-linux-amd64
22

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ See [action.yml](./action.yml) for more detailed information.
6262
* script_stop - stop script after first failure
6363
* envs - pass environment variable to shell script
6464
* debug - enable debug mode
65+
* use_insecure_cipher - include more ciphers with use_insecure_cipher (see [#56](https://github.com/appleboy/ssh-action/issues/56))
6566

6667
SSH Proxy Setting:
6768

@@ -74,6 +75,7 @@ SSH Proxy Setting:
7475
* proxy_key - content of ssh proxy private key.
7576
* proxy_key_path - path of ssh proxy private key
7677
* proxy_fingerprint - fingerprint SHA256 of the proxy host public key, default is to skip verification
78+
* proxy_use_insecure_cipher - include more ciphers with use_insecure_cipher (see [#56](https://github.com/appleboy/ssh-action/issues/56))
7779

7880
### Example
7981

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ inputs:
1616
sync:
1717
description: 'synchronous execution if multiple hosts'
1818
default: false
19+
use_insecure_cipher:
20+
description: 'include more ciphers with use_insecure_cipher'
21+
default: false
1922
timeout:
2023
description: 'timeout for ssh to host'
2124
default: "30s"
@@ -48,6 +51,9 @@ inputs:
4851
description: 'path of ssh proxy private key'
4952
proxy_fingerprint:
5053
description: 'sha256 fingerprint of the proxy host public key'
54+
proxy_use_insecure_cipher:
55+
description: 'include more ciphers with use_insecure_cipher'
56+
default: false
5157
script:
5258
description: 'execute commands'
5359
script_stop:

0 commit comments

Comments
 (0)