File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,12 +46,19 @@ jobs:
4646 echo "$SSH_PRIVATE_KEY" > ~/.ssh/test_key
4747 chmod 600 ~/.ssh/test_key
4848 ssh-keyscan github.com >> ~/.ssh/known_hosts
49+ cat >> ~/.ssh/config << EOF
50+ Host github.com
51+ User git
52+ IdentityFile ~/.ssh/test_key
53+ IdentitiesOnly yes
54+ EOF
55+ chmod 600 ~/.ssh/config
4956 echo "Testing SSH connection to GitHub..."
50- ssh -T -i ~/.ssh/test_key git@github.com || echo "SSH connection test completed"
57+ ssh -T git@github.com || echo "SSH connection test completed"
5158 echo "Testing repository access..."
5259 git clone --depth=1 --branch=fastlane "git@github.com:sendbird/fastlane-match-uikit-react-native.git" /tmp/match_test1 || echo "Repository access test failed"
53- rm -rf /tmp/match_test
54- rm ~/.ssh/test_key
60+ rm -rf /tmp/match_test1
61+ rm ~/.ssh/test_key ~/.ssh/config
5562
5663 - name : Setup Ruby
5764 uses : ruby/setup-ruby@v1
You can’t perform that action at this time.
0 commit comments