forked from omahn/wireguard-ssh-github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
39 lines (38 loc) · 1.12 KB
/
action.yml
File metadata and controls
39 lines (38 loc) · 1.12 KB
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
name: 'WireGuard SSH'
description: 'SSH over WireGuard to GitHub Actions runner'
branding:
icon: 'lock'
color: 'red'
inputs:
peer_ip:
description: 'IP of WireGuard peer'
required: true
ssh_public_key:
description: 'SSH public key'
required: true
peer_port:
description: 'Port of WireGuard peer'
required: false
github_ip:
description: 'Private IP of GitHub peer'
required: false
ssh_connection_timeout:
description: 'Seconds to wait for SSH connection'
required: false
session_timeout:
description: 'Seconds to timeout SSH session'
required: false
runs:
using: "composite"
steps:
- run: ${{ github.action_path }}/wireguard-ssh.sh
shell: bash
env:
PEER_PORT: ${{ inputs.peer_port }}
PEER_IP: ${{ inputs.peer_ip }}
GITHUB_IP: ${{ inputs.github_ip }}
SSH_PUBLIC_KEY: ${{ inputs.ssh_public_key }}
SSH_CONNECTION_TIMEOUT: ${{ inputs.ssh_connection_timeout }}
SESSION_TIMEOUT: ${{ inputs.session_timeout }}
cliect_privatekey: ${{ inputs.cliect_privatekey }}
peer_publickey: ${{ inputs.peer_publickey }}