File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
- # vx.x.x
2
- ## Fixes
1
+ # v1.1.4
2
+ ## Features
3
3
- Updated GitHub Actions action dependencies
4
+ ## Fixes
5
+ - Logic change to allow ` SSH_KNOWN_HOSTS="NoStrictHostKeyChecking" ` logic to run
4
6
5
7
# v1.1.3
6
8
## Features
Original file line number Diff line number Diff line change 2
2
3
3
set -o pipefail
4
4
5
-
6
5
if [ " $SSH_PRIVATE_KEY " ]; then
7
6
# # Run ssh-agent (inside the build environment)
8
7
eval $( ssh-agent -s)
@@ -11,15 +10,13 @@ if [ "$SSH_PRIVATE_KEY" ]; then
11
10
echo " ${SSH_PRIVATE_KEY} " | ssh-add -
12
11
fi
13
12
14
- if [ " $SSH_KNOWN_HOSTS " ]; then
15
- touch ~ /.ssh/known_hosts
16
- echo " $SSH_KNOWN_HOSTS " >> ~ /.ssh/known_hosts
17
- chmod 644 ~ /.ssh/known_hosts
18
- fi
19
-
20
13
if [ " $SSH_KNOWN_HOSTS " == " NoStrictHostKeyChecking" ]; then
21
14
touch ~ /.ssh/config
22
15
echo -e " Host *\n\tStrictHostKeyChecking no\n\n" >> ~ /.ssh/config
16
+ elif [ " $SSH_KNOWN_HOSTS " ]; then
17
+ touch ~ /.ssh/known_hosts
18
+ echo " $SSH_KNOWN_HOSTS " >> ~ /.ssh/known_hosts
19
+ chmod 644 ~ /.ssh/known_hosts
23
20
fi
24
21
25
22
exec " $@ "
You can’t perform that action at this time.
0 commit comments