-
Notifications
You must be signed in to change notification settings - Fork 9
/
action.yml
94 lines (92 loc) · 2.79 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: "SCP File Transfer"
description: "Upload and download files via SCP."
author: "Nicklas Frahm"
inputs:
direction:
description: "transfer direction"
required: yes
source:
description: "source files to copy"
required: yes
target:
description: "target folder"
default: "."
timeout:
description: "timeout for ssh connections"
default: "30s"
action_timeout:
description: "timeout for action"
default: "10m"
host:
description: "ssh host"
required: yes
port:
description: "ssh port"
default: "22"
username:
description: "ssh username"
default: "root"
passphrase:
description: "ssh key passphrase"
default: ""
insecure_password:
description: "ssh password"
default: ""
key:
description: "content of ssh private key. ex raw content of ~/.ssh/id_rsa"
required: yes
fingerprint:
description: "sha256 fingerprint of the host public key"
required: yes
insecure_ignore_fingerprint:
description: "skip fingerprint verification of the host public key"
default: "false"
proxy_host:
description: "ssh proxy host"
proxy_port:
description: "ssh proxy port"
default: "22"
proxy_username:
description: "ssh proxy username"
default: "root"
proxy_passphrase:
description: "ssh proxy key passphrase"
default: ""
insecure_proxy_password:
description: "ssh proxy password"
default: ""
proxy_key:
description: "content of ssh proxy private key. ex raw content of ~/.ssh/id_rsa"
proxy_fingerprint:
description: "sha256 fingerprint of the proxy host public key"
insecure_proxy_ignore_fingerprint:
description: "skip fingerprint verification of the proxy host public key"
default: "false"
runs:
using: "docker"
image: "docker://ghcr.io/nicklasfrahm/scp-action:main"
env:
DIRECTION: ${{ inputs.direction }}
SOURCE: ${{ inputs.source }}
TARGET: ${{ inputs.target }}
TIMEOUT: ${{ inputs.timeout }}
ACTION_TIMEOUT: ${{ inputs.action_timeout }}
HOST: ${{ inputs.host }}
PORT: ${{ inputs.port }}
USERNAME: ${{ inputs.username }}
PASSPHRASE: ${{ inputs.passphrase }}
INSECURE_PASSWORD: ${{ inputs.insecure_password }}
KEY: ${{ inputs.key }}
FINGERPRINT: ${{ inputs.fingerprint }}
INSECURE_IGNORE_FINGERPRINT: ${{ inputs.insecure_ignore_fingerprint }}
PROXY_HOST: ${{ inputs.proxy_host }}
PROXY_PORT: ${{ inputs.proxy_port }}
PROXY_USERNAME: ${{ inputs.proxy_username }}
PROXY_PASSPHRASE: ${{ inputs.proxy_passphrase }}
INSECURE_PROXY_PASSWORD: ${{ inputs.insecure_proxy_password }}
PROXY_KEY: ${{ inputs.proxy_key }}
PROXY_FINGERPRINT: ${{ inputs.proxy_fingerprint }}
INSECURE_PROXY_IGNORE_FINGERPRINT: ${{ inputs.insecure_proxy_ignore_fingerprint }}
branding:
icon: "copy"
color: "gray-dark"