From 6b00175bad1b79cfa1d2399fa8dd357373cceb31 Mon Sep 17 00:00:00 2001 From: Daniel Hwang Date: Mon, 18 May 2020 23:21:26 -0700 Subject: [PATCH] add support for fingerprint: (#54) --- Dockerfile | 2 +- README.md | 2 ++ action.yml | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e46084a..7c278f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM appleboy/drone-ssh:1.5.7-linux-amd64 +FROM appleboy/drone-ssh:1.5.8-linux-amd64 ADD entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/README.md b/README.md index 50a286c..f8e500f 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ See [action.yml](./action.yml) for more detailed information. * command_timeout - timeout for ssh command, default is `10m` * key - content of ssh private key. ex raw content of ~/.ssh/id_rsa * key_path - path of ssh private key +* fingerprint - fingerprint SHA256 of the host public key, default is to skip verification * script - execute commands * script_stop - stop script after first failure * envs - pass environment variable to shell script @@ -72,6 +73,7 @@ SSH Proxy Setting: * proxy_timeout - timeout for ssh to proxy host, default is `30s` * 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 ### Example diff --git a/action.yml b/action.yml index c76b730..04aa19d 100644 --- a/action.yml +++ b/action.yml @@ -26,6 +26,8 @@ inputs: description: 'content of ssh private key. ex raw content of ~/.ssh/id_rsa' key_path: description: 'path of ssh private key' + fingerprint: + description: 'sha256 fingerprint of the host public key' proxy_host: description: 'ssh proxy host' proxy_port: @@ -44,6 +46,8 @@ inputs: description: 'content of ssh proxy private key. ex raw content of ~/.ssh/id_rsa' proxy_key_path: description: 'path of ssh proxy private key' + proxy_fingerprint: + description: 'sha256 fingerprint of the proxy host public key' script: description: 'execute commands' script_stop: