File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ inputs:
43
43
description : The public key contents to use for private repositories
44
44
required : false
45
45
46
+ ssh_domain :
47
+ description : The domain to gether SSH public keys for (automatic for github.com, gitlab.com, bitbucket.org)
48
+ required : false
49
+
46
50
outputs :
47
51
time :
48
52
description : ' The time the action was run'
59
63
action_args : ${{ inputs.args }}
60
64
action_ssh_key : ${{ inputs.ssh_key }}
61
65
action_ssh_key_pub : ${{ inputs.ssh_key_pub }}
66
+ action_ssh_domain : ${{ inputs.ssh_domain }}
62
67
63
68
branding :
64
69
icon : ' package'
Original file line number Diff line number Diff line change 10
10
ssh-keyscan -t rsa github.com >> /root/.ssh/known_hosts
11
11
ssh-keyscan -t rsa gitlab.com >> /root/.ssh/known_hosts
12
12
ssh-keyscan -t rsa bitbucket.org >> /root/.ssh/known_hosts
13
+
14
+ if [ -n " $action_ssh_domain " ]
15
+ then
16
+ ssh-keyscan -t rsa " $action_ssh_domain " >> /root/.ssh/known_hosts
17
+ fi
18
+
13
19
echo " $action_ssh_key " > /root/.ssh/id_rsa
14
20
echo " $action_ssh_key_pub " > /root/.ssh/id_rsa.pub
15
21
chmod 600 /root/.ssh/id_rsa
You can’t perform that action at this time.
0 commit comments