Browse Source

Merge pull request #68 from Relayz-io/silvestr/remove-ssh-agent-action

Remove ssh-agent action because it failed to fetch a proper key name
develop
Predko Silvestr 2 years ago
parent
commit
684ce08460
No account linked to committer's email address
1 changed files with 10 additions and 4 deletions
  1. 10
    4
      .github/workflows/ci.yml

+ 10
- 4
.github/workflows/ci.yml View File

@@ -78,9 +78,15 @@ jobs:
78 78
         with:
79 79
           toolchain: stable
80 80
           target: wasm32-unknown-unknown
81
-      - name: Set up ssh access 
82
-        uses: webfactory/ssh-agent@v0.5.4
83
-        with:
84
-          ssh-private-key: ${{ secrets.SMARTCONTRACTS_SSH_PRIVATE_KEY }}
81
+      - name: Set up ssh access
82
+        env:
83
+          SSH_AUTH_SOCK: /tmp/ssh_agent.sock
84
+        run: |
85
+          mkdir -p -m 0700 ~/.ssh
86
+          ssh-keyscan github.com >> ~/.ssh/known_hosts
87
+          ssh-agent -a $SSH_AUTH_SOCK > /dev/null
88
+          ssh-add - <<< "${{ secrets.SMARTCONTRACTS_SSH_PRIVATE_KEY }}"
85 89
       - name: Run tests for [near-client]
90
+        env:
91
+          SSH_AUTH_SOCK: /tmp/ssh_agent.sock
86 92
         run: cargo test -p near-client --tests

Loading…
Cancel
Save