-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
30 lines (30 loc) · 933 Bytes
/
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
name: "OpenSSH GitHub"
description: "OpenSSH for passwordless (key based) authentication"
inputs:
encryption_key:
description: "The key to decrypt the encrypted private key."
required: true
default: abcde
private_key_path:
description: "The location of the private key."
required: false
default: .github/workflows/secrets/id_rsa
ssh_agent_path:
description: "The location of 'ssh_agent.sock'"
required: false
default: /tmp/ssh_agent.sock
outputs:
ssh_agent_path:
description: "The location of 'ssh_agent.sock'"
value: ${{ inputs.ssh_agent_path }}
runs:
using: "composite"
steps:
- id: set-ssh
env:
PRIVATE_KEY_PATH: ${{ inputs.private_key_path }}
SSH_AUTH_SOCK: ${{ inputs.ssh_agent_path }}
run: |
${{ github.action_path }}/main.sh ${{ inputs.encryption_key }}
echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >>$GITHUB_ENV
shell: bash