Skip to content

Commit 4ffc767

Browse files
committed
chore: update repository access test in GitHub Actions workflow to use explicit repository URL
1 parent ab0abf1 commit 4ffc767

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

‎.github/workflows/publish-sample.yml‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)