Skip to content

Commit 60f3e05

Browse files
authored
remove \r from ssh keys (#1397)
1 parent ed957cc commit 60f3e05

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
apt-get -y install libssh2-1-dev
7272
pecl install pecl.php.net/ssh2-1.4.1
7373
echo extension=ssh2.so > /usr/local/etc/php/conf.d/ssh2.ini
74-
echo "${{ secrets.DEPLOY_SSH_KEY }}" > id_rsa
74+
echo "${{ secrets.DEPLOY_SSH_KEY }}" | tr -d '\r' > id_rsa
7575
chmod 600 id_rsa
7676
ssh-keygen -f id_rsa -y > id_rsa.pub
7777
- name: Deploy

.github/workflows/deploy-manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
apt-get -y install libssh2-1-dev
7575
pecl install pecl.php.net/ssh2-1.4.1
7676
echo extension=ssh2.so > /usr/local/etc/php/conf.d/ssh2.ini
77-
echo "${{ secrets.DEPLOY_SSH_KEY }}" > id_rsa
77+
echo "${{ secrets.DEPLOY_SSH_KEY }}" | tr -d '\r' > id_rsa
7878
chmod 600 id_rsa
7979
ssh-keygen -f id_rsa -y > id_rsa.pub
8080
- name: Deploy

.github/workflows/deploy-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
apt-get -y install libssh2-1-dev
7171
pecl install pecl.php.net/ssh2-1.4.1
7272
echo extension=ssh2.so > /usr/local/etc/php/conf.d/ssh2.ini
73-
echo "${{ secrets.DEPLOY_SSH_KEY }}" > id_rsa
73+
echo "${{ secrets.DEPLOY_SSH_KEY }}" | tr -d '\r' > id_rsa
7474
chmod 600 id_rsa
7575
ssh-keygen -f id_rsa -y > id_rsa.pub
7676
- name: Deploy

0 commit comments

Comments
 (0)