fix(ci): configure git to use HTTPS for GitHub dependencies
Fixes "Permission denied (publickey)" error when Yarn tries to fetch libsignal dependency via SSH in GitHub Actions. Added git config to force HTTPS instead of SSH for all GitHub URLs in all workflows that run yarn install. https://claude.ai/code/session_01QPt4WssG6jjEciQKdVpFtK
This commit is contained in:
@@ -27,6 +27,13 @@ jobs:
|
||||
corepack enable
|
||||
corepack prepare yarn@4.x --activate
|
||||
|
||||
- name: Configure Git for HTTPS
|
||||
run: |
|
||||
# Force git to use HTTPS instead of SSH for GitHub repositories
|
||||
# This fixes "Permission denied (publickey)" errors in CI
|
||||
git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"
|
||||
git config --global url."https://github.com/".insteadOf "git@github.com:"
|
||||
|
||||
- name: Install packages
|
||||
run: |
|
||||
yarn install --immutable
|
||||
|
||||
Reference in New Issue
Block a user