This commit is contained in:
1
2026-01-27 03:26:43 +00:00
parent 7e3fec7282
commit f639723495

View File

@@ -40,14 +40,8 @@ steps:
EOF
chmod 600 /root/.ssh/id_ed25519
echo "✅ ED25519密钥写入完成"
# 可选兼容RSA密钥如果ED25519解析失败启用下方逻辑
# elif [ -n "$WOODPECKER_SSH_KEY_RSA" ]; then
# cat > /root/.ssh/id_rsa << 'EOF'
# $WOODPECKER_SSH_KEY_RSA
# EOF
# chmod 600 /root/.ssh/id_rsa
# echo "✅ RSA密钥写入完成"
# fi
- chmod 600 /root/.ssh/id_ed25519
# 添加GitHub主机密钥完整覆盖避免重复