-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
58 lines (58 loc) · 2.1 KB
/
action.yml
File metadata and controls
58 lines (58 loc) · 2.1 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: 'apter-tech/ssh-agent'
description: 'Run `ssh-agent`, load an SSH key to access other private repositories and setup `known_hosts` for host verification.'
inputs:
ssh-host:
description: Hostname to fetch SSH keys from using ssh-keyscan.
required: false
ssh-key-type:
description: >
Specify the type of the key to fetch from the scanned hosts. The possible values are “ecdsa”, “ed25519”, “ecdsa-sk”, “ed25519-sk”, or “rsa”.
Multiple values may be specified by separating them with commas. The default is to fetch all the above key types.
required: false
ssh-known-hosts:
description: 'Predefined known hosts to be added directly.'
required: false
# Inputs from webfactory/ssh-agent
ssh-private-key:
description: 'Private SSH key to register in the SSH agent'
required: true
ssh-auth-sock:
description: 'Where to place the SSH Agent auth socket'
required: false
log-public-key:
description: 'Whether or not to log public key fingerprints'
required: false
default: true
ssh-agent-cmd:
description: 'ssh-agent command'
required: false
ssh-add-cmd:
description: 'ssh-add command'
required: false
git-cmd:
description: 'git command'
required: false
runs:
using: 'composite'
steps:
- uses: pyTooling/Actions/with-post-step@9ceefdbf5dceae8c441fc393ed82344c7ca8bbdb # v3.1.1
env:
SSH_HOST: ${{ inputs.ssh-host }}
SSH_KEY_TYPE: ${{ inputs.ssh-key-type }}
SSH_KNOWN_HOSTS: ${{ inputs.ssh-known-hosts }}
with:
main: |
sh "${{ github.action_path }}/action.sh"
post: |
sh "${{ github.action_path }}/post_action.sh"
- uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
with:
ssh-private-key: ${{ inputs.ssh-private-key }}
ssh-auth-sock: ${{ inputs.ssh-auth-sock }}
log-public-key: ${{ inputs.log-public-key }}
ssh-agent-cmd: ${{ inputs.ssh-agent-cmd }}
ssh-add-cmd: ${{ inputs.ssh-add-cmd }}
git-cmd: ${{ inputs.git-cmd }}
branding:
icon: loader
color: 'purple'