diff --git a/.github/workflows/wpcloud.yml b/.github/workflows/wpcloud.yml index fafba4c2d19f4..da9778e95f82e 100644 --- a/.github/workflows/wpcloud.yml +++ b/.github/workflows/wpcloud.yml @@ -54,42 +54,18 @@ jobs: chmod -v 700 ~/.ssh touch ~/.ssh/id_site + touch ~/.ssh/known_hosts chmod 600 ~/.ssh/id_site - echo "$WPCLOUD_SSH_KEY" > ~/.ssh/id_site + chmod 600 ~/.ssh/known_hosts + echo "$SSH_KEY" > ~/.ssh/id_site echo "wrote ~/.ssh/id_site" - - touch ~/.ssh/askpass - chmod -v 700 ~/.ssh/askpass - cat >>~/.ssh/askpass <>~/.ssh/config <>~/.ssh/stdin < ~/.ssh/known_hosts + echo "wrote ~/.ssh/known_hosts" echo "::endgroup::" echo "::group::execution" - cat ~/.ssh/stdin | setsid ssh -i ~/.ssh/id_site -l "$WPCLOUD_SSH_USER" ssh.atomicsites.net "$WPCLOUD_SSH_COMMAND" || CODE=$? + ssh -i ~/.ssh/id_site jetpackwpcomshtester.wordpress.com@sftp.wp.com "ls" || CODE=$? echo "::endgroup::" echo "::group::teardown" @@ -98,8 +74,5 @@ jobs: echo "Exiting with exit code $CODE" exit $CODE env: - WPCLOUD_SSH_KEY: ${{ secrets.WPCLOUD_SSH_KEY }} - WPCLOUD_SSH_KEY_PASSPHRASE: ${{ secrets.WPCLOUD_SSH_KEY_PASSPHRASE }} - WPCLOUD_SSH_USER: ${{ secrets.WPCLOUD_SSH_USER }} - WPCLOUD_SSH_COMMAND: ${{ secrets.WPCLOUD_SSH_COMMAND }} - WPCLOUD_STDIN: ${{ toJSON(github) }} + SSH_KEY: ${{ secrets.UPDATEJETPACKSTAGING_SSH_KEY }} + SSH_KNOWN_HOSTS: ${{ secrets.UPDATEJETPACKSTAGING_SSH_KNOWN_HOSTS }}