-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
54 lines (54 loc) · 1.28 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
name: 'ssh-socks-action'
author: 'Ayou'
description: 'Setup ssh socks5 proxy that use proxy-connect'
branding:
icon: terminal
color: gray-dark
inputs:
proxy_username:
description: 'username'
required: true
proxy_server:
description: 'your server host or ip address'
required: true
proxy_port:
description: 'server port'
required: true
proxy_socks5_pwd:
description: 'socks5 protocol user password'
required: false
username:
description: 'ssh username'
required: true
default: 'root'
host:
description: 'ssh host or ip address'
required: true
port:
description: 'ssh port'
required: true
default: '21'
password:
description: 'ssh password'
required: true
key:
description: "ssh key"
required: false
run:
description: 'commands to run'
required: false
default: 'whoami'
runs:
using: 'docker'
image: 'Dockerfile'
env:
PROXY_SERVER: ${{ inputs.proxy_server }}
PROXY_PROT: ${{ inputs.proxy_port }}
PROXY_SOCKS5_PWD: ${{ inputs.proxy_socks5_pwd }}
PROXY_USERNAME: ${{ inputs.proxy_username }}
RUN: ${{ inputs.run }}
KEY: ${{ inputs.key }}
USERNAME: ${{ inputs.username }}
PASSWORD: ${{ inputs.password }}
PORT: ${{ inputs.port }}
HOST: ${{ inputs.host }}