From 60f3e0503121f54b77af819994cd8f45197ffc7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Fri, 18 Oct 2024 22:29:51 +0200 Subject: [PATCH] remove \r from ssh keys (#1397) --- .github/workflows/deploy-dev.yml | 2 +- .github/workflows/deploy-manual.yml | 2 +- .github/workflows/deploy-staging.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 11759b9f1..a10093d7f 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -71,7 +71,7 @@ jobs: apt-get -y install libssh2-1-dev pecl install pecl.php.net/ssh2-1.4.1 echo extension=ssh2.so > /usr/local/etc/php/conf.d/ssh2.ini - echo "${{ secrets.DEPLOY_SSH_KEY }}" > id_rsa + echo "${{ secrets.DEPLOY_SSH_KEY }}" | tr -d '\r' > id_rsa chmod 600 id_rsa ssh-keygen -f id_rsa -y > id_rsa.pub - name: Deploy diff --git a/.github/workflows/deploy-manual.yml b/.github/workflows/deploy-manual.yml index 883c0b300..914c4b11d 100644 --- a/.github/workflows/deploy-manual.yml +++ b/.github/workflows/deploy-manual.yml @@ -74,7 +74,7 @@ jobs: apt-get -y install libssh2-1-dev pecl install pecl.php.net/ssh2-1.4.1 echo extension=ssh2.so > /usr/local/etc/php/conf.d/ssh2.ini - echo "${{ secrets.DEPLOY_SSH_KEY }}" > id_rsa + echo "${{ secrets.DEPLOY_SSH_KEY }}" | tr -d '\r' > id_rsa chmod 600 id_rsa ssh-keygen -f id_rsa -y > id_rsa.pub - name: Deploy diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 1d760b0e7..19870d1c0 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -70,7 +70,7 @@ jobs: apt-get -y install libssh2-1-dev pecl install pecl.php.net/ssh2-1.4.1 echo extension=ssh2.so > /usr/local/etc/php/conf.d/ssh2.ini - echo "${{ secrets.DEPLOY_SSH_KEY }}" > id_rsa + echo "${{ secrets.DEPLOY_SSH_KEY }}" | tr -d '\r' > id_rsa chmod 600 id_rsa ssh-keygen -f id_rsa -y > id_rsa.pub - name: Deploy