Skip to content

Commit 93ed533

Browse files
committed
fix: Set secure permissions for SSH known hosts file
- Added `chmod 600` to `action.sh` to secure the `known_hosts` file by restricting access permissions.
1 parent f31073c commit 93ed533

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

action.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ Failed to scan SSH host keys for ${SSH_HOST}"
3939
echo "::notice file=$(basename "$0"),line=${LINENO},endLine=${LINENO},title=Notice::${SSH_KNOWN_HOSTS_FILE} has been created."
4040
fi
4141
fi
42+
43+
chmod 600 "${SSH_KNOWN_HOSTS_FILE}"

0 commit comments

Comments
 (0)