Skip to content

Commit 008eedb

Browse files
committed
debug
Signed-off-by: Maksim Khimchenko <maksim.khimchenko@flant.com>
1 parent 11e26e5 commit 008eedb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

svace_analyze/action.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ runs:
4747
mkdir -p ~/.ssh
4848
touch ~/.ssh/known_hosts
4949
HOST_KEYS=$(ssh-keyscan -H "$host" 2>/dev/null)
50-
echo "$HOST_KEYS"
50+
echo -e "Host keys:\n$HOST_KEYS"
5151
while IFS= read -r KEY_LINE; do
5252
CONSTANT_PART=$(awk '{print $2, $3}' <<< "$KEY_LINE")
53+
echo -e "Constant part:\n$CONSTANT_PART"
5354
if ! grep -q "$CONSTANT_PART" ~/.ssh/known_hosts; then
54-
echo "$KEY_LINE"
55+
echo -e "Key line:\n$KEY_LINE"
5556
echo "$KEY_LINE" >> ~/.ssh/known_hosts
5657
fi
5758
done <<< "$HOST_KEYS"

0 commit comments

Comments
 (0)