문제: - base64 디코딩 시도 시 "invalid input" 오류 - 원본 SSH 키를 그냥 저장한 경우 호환되지 않음 해결: - echo의 base64 -d 제거 - SSH 키를 그대로 파일에 저장하도록 변경 - 원본 키와 base64 인코딩된 키 모두 호환 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -50,7 +50,7 @@ jobs:
|
||||
- name: Setup SSH key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.DEPLOY_SSH_KEY }}" | base64 -d > ~/.ssh/deploy_key
|
||||
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/deploy_key
|
||||
chmod 600 ~/.ssh/deploy_key
|
||||
cat >> ~/.ssh/config << 'EOF'
|
||||
Host deploy
|
||||
|
||||
Reference in New Issue
Block a user