From 9ebb4513641717cb7f3bd6765314dcf64ab39e68 Mon Sep 17 00:00:00 2001 From: jordandsullivan Date: Thu, 23 Jan 2025 11:07:15 -0800 Subject: [PATCH] Manually save ssh key --- .github/workflows/ucc-benchmarks.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ucc-benchmarks.yml b/.github/workflows/ucc-benchmarks.yml index 57c2c17..d964920 100644 --- a/.github/workflows/ucc-benchmarks.yml +++ b/.github/workflows/ucc-benchmarks.yml @@ -16,17 +16,20 @@ jobs: runs-on: ucc-benchmarks-8-core-U22.04 steps: - # Checkout the repository - - - name: Enable SSH Debugging + - name: Setup SSH Key run: | - echo "Debugging SSH Key..." - ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no git@github.com - - - name: Checkout code + mkdir -p ~/.ssh + echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts + + - name: Test SSH Key + run: ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no git@github.com + + - name: Checkout Code uses: actions/checkout@v4 with: - ssh-key: ${{ secrets.DEPLOY_KEY }} + ssh-key: ~/.ssh/id_ed25519 # Build the Docker image - name: Build Docker image