From 83a04bab6232ed40d8e9c723f2afb16f5484b00c Mon Sep 17 00:00:00 2001 From: Edwin Farrel Juniawan <39050631+farreledwin@users.noreply.github.com> Date: Tue, 21 May 2024 23:28:32 +0700 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cdb6fdca7..6aae08ea2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,6 +18,10 @@ jobs: with: ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Add GitHub to known_hosts + run: | + ssh-keyscan github.com >> ~/.ssh/known_hosts + - name: Execute remote commands run: | ssh -o StrictHostKeyChecking=no root@45.77.146.40 << 'EOF'