Skip to content

Commit a0a0326

Browse files
committed
docs: clarify parameter descriptions for improved documentation
- Update descriptions for various input parameters to provide clearer guidance on their usage. - Enhance the description for the `capture_stdout` parameter to specify its effect on action output. - Modify the description for the `stdout` output to clarify its relation to the `capture_stdout` setting. Signed-off-by: appleboy <[email protected]>
1 parent b0a8f32 commit a0a0326

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

action.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,85 +3,85 @@ description: "Executing remote ssh commands"
33
author: "Bo-Yi Wu"
44
inputs:
55
host:
6-
description: "SSH host address."
6+
description: "SSH host address or IP to connect to."
77
port:
8-
description: "SSH port number."
8+
description: "SSH port number for the connection."
99
default: "22"
1010
passphrase:
11-
description: "Passphrase for the SSH key."
11+
description: "Passphrase to decrypt the SSH private key if protected."
1212
username:
13-
description: "SSH username."
13+
description: "SSH username for authentication on the remote server."
1414
password:
15-
description: "SSH password."
15+
description: "SSH password for authentication (use secrets for sensitive data)."
1616
protocol:
17-
description: 'The IP protocol to use. Valid values are "tcp". "tcp4" or "tcp6". Default to tcp.'
17+
description: 'IP protocol version to use. Options: "tcp" (default), "tcp4" (IPv4 only), or "tcp6" (IPv6 only).'
1818
default: "tcp"
1919
sync:
20-
description: "Enable synchronous execution if multiple hosts are involved."
20+
description: "When true, executes commands synchronously across multiple hosts (one after another)."
2121
use_insecure_cipher:
22-
description: "Include more ciphers by using insecure ciphers."
22+
description: "Enable additional legacy ciphers that might be less secure but more compatible with older systems."
2323
cipher:
24-
description: "Allowed cipher algorithms. If unspecified, a sensible default is used."
24+
description: "Specify custom cipher algorithms for encryption. Leave empty to use secure defaults."
2525
timeout:
26-
description: "Timeout duration for establishing SSH connection to the host."
26+
description: "Maximum time to wait when establishing the SSH connection, e.g., '30s', '1m'."
2727
default: "30s"
2828
command_timeout:
29-
description: "Timeout duration for SSH commands execution."
29+
description: "Maximum execution time for the remote commands before terminating, e.g., '10m', '1h'."
3030
default: "10m"
3131
key:
32-
description: "Content of the SSH private key. For example, the raw content of ~/.ssh/id_rsa."
32+
description: "Raw content of the SSH private key for authentication (use secrets for sensitive data)."
3333
key_path:
34-
description: "Path to the SSH private key file."
34+
description: "Path to the SSH private key file on the runner."
3535
fingerprint:
36-
description: "SHA256 fingerprint of the host public key."
36+
description: "SHA256 fingerprint of the host public key for verification to prevent MITM attacks."
3737
proxy_host:
38-
description: "SSH proxy host address."
38+
description: "Proxy server hostname or IP if connecting through an SSH jump host."
3939
proxy_port:
40-
description: "SSH proxy port number."
40+
description: "SSH port number for the proxy connection."
4141
default: "22"
4242
proxy_username:
43-
description: "SSH proxy username."
43+
description: "Username for authentication on the proxy server."
4444
proxy_password:
45-
description: "SSH proxy password."
45+
description: "Password for authentication on the proxy server (use secrets for sensitive data)."
4646
proxy_protocol:
47-
description: 'The IP protocol to use. Valid values are "tcp". "tcp4" or "tcp6". Default to tcp.'
47+
description: 'IP protocol version for proxy. Options: "tcp" (default), "tcp4" (IPv4 only), or "tcp6" (IPv6 only).'
4848
default: "tcp"
4949
proxy_passphrase:
50-
description: "SSH proxy key passphrase."
50+
description: "Passphrase to decrypt the proxy SSH private key if protected."
5151
proxy_timeout:
52-
description: "Timeout duration for establishing SSH connection to the proxy host."
52+
description: "Maximum time to wait when establishing the proxy SSH connection, e.g., '30s', '1m'."
5353
default: "30s"
5454
proxy_key:
55-
description: "Content of the SSH proxy private key. For example, the raw content of ~/.ssh/id_rsa."
55+
description: "Raw content of the SSH proxy private key for authentication (use secrets for sensitive data)."
5656
proxy_key_path:
57-
description: "Path to the SSH proxy private key file."
57+
description: "Path to the SSH proxy private key file on the runner."
5858
proxy_fingerprint:
59-
description: "SHA256 fingerprint of the proxy host public key."
59+
description: "SHA256 fingerprint of the proxy host public key for verification."
6060
proxy_cipher:
61-
description: "Allowed cipher algorithms for the proxy. If unspecified, a sensible default is used."
61+
description: "Specify custom cipher algorithms for proxy connection encryption."
6262
proxy_use_insecure_cipher:
63-
description: "Include more ciphers for the proxy by using insecure ciphers."
63+
description: "Enable additional legacy ciphers for proxy connections (less secure but more compatible)."
6464
script:
65-
description: "Commands to be executed."
65+
description: "Commands to execute on the remote server (inline script string)."
6666
script_path:
67-
description: "Path to the file containing commands to be executed."
67+
description: "Path to a local file containing commands to execute on the remote server."
6868
envs:
69-
description: "Environment variables to be passed to the shell script."
69+
description: "Environment variables to expose to the remote script, format: key=value,key2=value2."
7070
envs_format:
71-
description: "Flexible configuration for environment value transfer."
71+
description: "Format specification for environment variable transfer (for advanced usage)."
7272
debug:
73-
description: "Enable debug mode."
73+
description: "Set to true to enable verbose logging for troubleshooting connection issues."
7474
allenvs:
75-
description: "pass all environment variable to shell script."
75+
description: "When true, passes all GitHub Actions environment variables to the remote script."
7676
request_pty:
77-
description: "Request a pseudo-terminal from the server."
77+
description: "Request a pseudo-terminal from the server (required for interactive commands or sudo)."
7878
capture_stdout:
79-
description: "Capture the stdout of the commands."
79+
description: "When true, captures and returns standard output from the commands as action output."
8080
default: "false"
8181

8282
outputs:
8383
stdout:
84-
description: 'Standard output of the executed commands.'
84+
description: "Standard output of the executed commands when capture_stdout is enabled."
8585
value: ${{ steps.entrypoint.outputs.stdout }}
8686

8787
runs:

0 commit comments

Comments
 (0)