From ff40720df2c73b33347eb5ab171a497c3c9ee55d Mon Sep 17 00:00:00 2001 From: emil Date: Sat, 9 May 2026 14:10:23 +0300 Subject: [PATCH] fix: use printf to preserve SSH key newlines in deploy workflow echo strips trailing newlines from multiline secrets, breaking PEM format. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 771c4ac..df3e3f3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,7 +21,7 @@ jobs: - name: Setup SSH key run: | mkdir -p ~/.ssh - echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/deploy_key + printf '%s\n' "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/deploy_key chmod 600 ~/.ssh/deploy_key ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts