Skip to content

Commit 30cceaa

Browse files
committed
ci: Add SSH key debug logging
1 parent eabac3f commit 30cceaa

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,17 @@ jobs:
3737
SSH_PATH="$HOME/.ssh"
3838
mkdir -p "$SSH_PATH"
3939
touch "$SSH_PATH/known_hosts"
40+
4041
echo "$PRIVATE_KEY" > "$SSH_PATH/id_rsa"
42+
43+
echo "--- Debug: key file size ---"
44+
wc -c "$SSH_PATH/id_rsa"
45+
echo "--- Debug: first/last lines ---"
46+
head -1 "$SSH_PATH/id_rsa"
47+
tail -1 "$SSH_PATH/id_rsa"
48+
echo "--- Debug: file type ---"
49+
file "$SSH_PATH/id_rsa"
50+
4151
chmod 700 "$SSH_PATH"
4252
ssh-keyscan github.com >> ~/.ssh/known_hosts
4353
chmod 600 "$SSH_PATH/known_hosts"

0 commit comments

Comments
 (0)