From 8e7a54e7ad0c9b36f8c1d7f8d0640018eae6b1ed Mon Sep 17 00:00:00 2001 From: Nick Clyde Date: Wed, 4 Sep 2024 09:18:36 -0700 Subject: [PATCH] Disable host key checking --- .github/workflows/deployment.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml index ab04d44..5cce8a7 100644 --- a/.github/workflows/deployment.yaml +++ b/.github/workflows/deployment.yaml @@ -50,17 +50,12 @@ jobs: AZURE_VM_IP: ${{ secrets.AZURE_VM_IP }} AZURE_VM_SSH_KEY: ${{ secrets.AZURE_VM_SSH_KEY }} run: | - echo 1 install -m 600 -D /dev/null ~/.ssh/phinvads-go - echo 2 echo "${{ secrets.AZURE_VM_SSH_KEY }}" > ~/.ssh/phinvads-go - echo 3 - ssh-keyscan -H $AZURE_VM_IP >> ~/.ssh/known_hosts - echo 4 go install github.com/a-h/templ/cmd/templ@latest templ generate go build -o phinvads-go ./cmd/phinvads-go - scp -i ~/.ssh/phinvads-go ./phinvads-go azureuser@${AZURE_VM_IP}:/home/azureuser/phinvads-go + scp -i ~/.ssh/phinvads-go -o StrictHostKeyChecking=no ./phinvads-go azureuser@${AZURE_VM_IP}:/home/azureuser/phinvads-go - name: Disallow GitHub Runner IP run: |