File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ inputs:
61
61
description : The domain to gather SSH public keys for (automatic for github.com, gitlab.com, bitbucket.org)
62
62
required : false
63
63
64
+ ssh_port :
65
+ description : Custom port to use in conjunction with ssh_domain
66
+ required : false
67
+
64
68
working_dir :
65
69
description : Use the given directory as working directory
66
70
required : false
92
96
ACTION_SSH_KEY : ${{ inputs.ssh_key }}
93
97
ACTION_SSH_KEY_PUB : ${{ inputs.ssh_key_pub }}
94
98
ACTION_SSH_DOMAIN : ${{ inputs.ssh_domain }}
99
+ ACTION_SSH_PORT : ${{ inputs.ssh_port }}
95
100
ACTION_WORKING_DIR : ${{ inputs.working_dir }}
96
101
ACTION_MEMORY_LIMIT : ${{ inputs.memory_limit }}
97
102
id : composer_run
Original file line number Diff line number Diff line change 33
33
34
34
if [ -n " $ACTION_SSH_DOMAIN " ]
35
35
then
36
- ssh-keyscan -t rsa " $ACTION_SSH_DOMAIN " >> ~ /.ssh/known_hosts
36
+ if [ -n " $ACTION_SSH_PORT " ]
37
+ then
38
+ ssh-keyscan -t rsa -p $ACTION_SSH_PORT " $ACTION_SSH_DOMAIN " >> ~ /.ssh/known_hosts
39
+ else
40
+ ssh-keyscan -t rsa " $ACTION_SSH_DOMAIN " >> ~ /.ssh/known_hosts
41
+ fi
37
42
fi
38
43
39
44
echo " $ACTION_SSH_KEY " > ~ /.ssh/action_rsa
You can’t perform that action at this time.
0 commit comments