File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -190,13 +190,11 @@ jobs:
190190 tutor plugins enable picasso
191191
192192 - name : Setup SSH agent for private repositories cloning
193- env :
194- SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY_TEST }}
195- if : env.SSH_PRIVATE_KEY_TEST
193+ if : ${{ secrets.SSH_PRIVATE_KEY_TEST != '' }}
196194 uses : webfactory/ssh-agent@v0.9.0
197195 with :
198- ssh-private-key : |
199- ${{ secrets.SSH_PRIVATE_KEY_TEST }}
196+ ssh-private-key : |
197+ ${{ secrets.SSH_PRIVATE_KEY_TEST }}
200198
201199 - name : Add GitHub to known hosts
202200 env :
@@ -205,6 +203,13 @@ jobs:
205203 run : |
206204 ssh-keyscan github.com >> ~/.ssh/known_hosts
207205
206+ - name : Debug SSH agent and GitHub auth
207+ run : |
208+ echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK"
209+ ls -la "$SSH_AUTH_SOCK" || true
210+ ssh-add -l || true
211+ ssh -o StrictHostKeyChecking=accept-new -vvv -T git@github.com || true
212+
208213 - name : Add Bitbucket to known hosts
209214 env :
210215 SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY_TEST }}
You can’t perform that action at this time.
0 commit comments