From 029b9b3cba1fbe3289f2e1deed9dbe14806e9734 Mon Sep 17 00:00:00 2001 From: apoloz Date: Wed, 22 May 2024 20:01:55 +0000 Subject: [PATCH] Update .gitea/workflows/test_infra.yaml --- .gitea/workflows/test_infra.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/test_infra.yaml b/.gitea/workflows/test_infra.yaml index 10d8784..4ce7e7c 100644 --- a/.gitea/workflows/test_infra.yaml +++ b/.gitea/workflows/test_infra.yaml @@ -12,10 +12,13 @@ jobs: - uses: actions/checkout@v3 - name: Add the SSH key to known_hosts + env: + SSH_AUTH_SOCK: /tmp/ssh_agent.sock run: | mkdir -p ~/.ssh - ssh-keyscan -p 222 10.55.5.123 >> ~/.ssh/known_hosts + ssh-agent -a $SSH_AUTH_SOCK > /dev/null ssh-add - <<< "${{ secrets.MY_SSH_PRIV_KEY }}" + ssh-keyscan -p 222 10.55.5.123 >> ~/.ssh/known_hosts # echo ${{ vars.MY_SSH_PRIV_KEY }} > ~/.ssh/id_rsa # chmod 0600 ~/.ssh/id_rsa