File tree Expand file tree Collapse file tree 2 files changed +18
-36
lines changed
Expand file tree Collapse file tree 2 files changed +18
-36
lines changed Original file line number Diff line number Diff line change @@ -47,27 +47,18 @@ jobs:
4747 mkdir -p ~/.ssh
4848 chmod 700 ~/.ssh
4949
50- cat > ~/.ssh/id_rsa_1 << 'EOL'
51- ${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}
52- EOL
53-
54- cat > ~/.ssh/id_rsa_2 << 'EOL'
55- ${{ secrets.OPENVM_STARK_GPU_SSH_PRIVATE_KEY }}
56- EOL
57-
58- cat > ~/.ssh/id_rsa_3 << 'EOL'
59- ${{ secrets.PLONKY3_GPU_SSH_PRIVATE_KEY }}
60- EOL
61-
62- chmod 600 ~/.ssh/id_rsa_*
50+ (
51+ echo "${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}"
52+ echo ""
53+ echo "${{ secrets.OPENVM_STARK_GPU_SSH_PRIVATE_KEY }}"
54+ echo ""
55+ echo "${{ secrets.PLONKY3_GPU_SSH_PRIVATE_KEY }}"
56+ ) > ~/.ssh/all_keys
6357
58+ chmod 600 ~/.ssh/all_keys
6459 eval "$(ssh-agent -s)" > /dev/null
65- ssh-add ~/.ssh/id_rsa_1 2>/dev/null
66- ssh-add ~/.ssh/id_rsa_2 2>/dev/null
67- ssh-add ~/.ssh/id_rsa_3 2>/dev/null
68-
60+ ssh-add ~/.ssh/all_keys 2>/dev/null
6961 ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts 2>/dev/null
70-
7162 echo "Number of loaded keys: $(ssh-add -l | wc -l)"
7263 - name : Lint
7364 working-directory : ' common'
Original file line number Diff line number Diff line change @@ -312,27 +312,18 @@ jobs:
312312 mkdir -p ~/.ssh
313313 chmod 700 ~/.ssh
314314
315- cat > ~/.ssh/id_rsa_1 << 'EOL'
316- ${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}
317- EOL
318-
319- cat > ~/.ssh/id_rsa_2 << 'EOL'
320- ${{ secrets.OPENVM_STARK_GPU_SSH_PRIVATE_KEY }}
321- EOL
322-
323- cat > ~/.ssh/id_rsa_3 << 'EOL'
324- ${{ secrets.PLONKY3_GPU_SSH_PRIVATE_KEY }}
325- EOL
326-
327- chmod 600 ~/.ssh/id_rsa_*
315+ (
316+ echo "${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}"
317+ echo ""
318+ echo "${{ secrets.OPENVM_STARK_GPU_SSH_PRIVATE_KEY }}"
319+ echo ""
320+ echo "${{ secrets.PLONKY3_GPU_SSH_PRIVATE_KEY }}"
321+ ) > ~/.ssh/all_keys
328322
323+ chmod 600 ~/.ssh/all_keys
329324 eval "$(ssh-agent -s)" > /dev/null
330- ssh-add ~/.ssh/id_rsa_1 2>/dev/null
331- ssh-add ~/.ssh/id_rsa_2 2>/dev/null
332- ssh-add ~/.ssh/id_rsa_3 2>/dev/null
333-
325+ ssh-add ~/.ssh/all_keys 2>/dev/null
334326 ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts 2>/dev/null
335-
336327 echo "Number of loaded keys: $(ssh-add -l | wc -l)"
337328 - name : Run custom script
338329 run : |
You can’t perform that action at this time.
0 commit comments