From c9eebc1cde37bec0e73a313e766b036690c783fe Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 24 May 2020 10:54:31 +0800 Subject: [PATCH] chore: support use_insecure_cipher (#57) --- .github/workflows/ci.yml | 10 ++++++++++ Dockerfile | 2 +- README.md | 2 ++ action.yml | 6 ++++++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb997fe..4130a2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,3 +92,13 @@ jobs: script: | whoami ls -al + + - name: use insecure cipher + uses: ./ + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: whoami + use_insecure_cipher: true diff --git a/Dockerfile b/Dockerfile index 7c278f5..7f61ac5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM appleboy/drone-ssh:1.5.8-linux-amd64 +FROM appleboy/drone-ssh:1.5.9-linux-amd64 ADD entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/README.md b/README.md index f8e500f..c679439 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ See [action.yml](./action.yml) for more detailed information. * script_stop - stop script after first failure * envs - pass environment variable to shell script * debug - enable debug mode +* use_insecure_cipher - include more ciphers with use_insecure_cipher (see [#56](https://github.com/appleboy/ssh-action/issues/56)) SSH Proxy Setting: @@ -74,6 +75,7 @@ SSH Proxy Setting: * proxy_key - content of ssh proxy private key. * proxy_key_path - path of ssh proxy private key * proxy_fingerprint - fingerprint SHA256 of the proxy host public key, default is to skip verification +* proxy_use_insecure_cipher - include more ciphers with use_insecure_cipher (see [#56](https://github.com/appleboy/ssh-action/issues/56)) ### Example diff --git a/action.yml b/action.yml index 04aa19d..b15f758 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,9 @@ inputs: sync: description: 'synchronous execution if multiple hosts' default: false + use_insecure_cipher: + description: 'include more ciphers with use_insecure_cipher' + default: false timeout: description: 'timeout for ssh to host' default: "30s" @@ -48,6 +51,9 @@ inputs: description: 'path of ssh proxy private key' proxy_fingerprint: description: 'sha256 fingerprint of the proxy host public key' + proxy_use_insecure_cipher: + description: 'include more ciphers with use_insecure_cipher' + default: false script: description: 'execute commands' script_stop: