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:
@@ -24,6 +24,13 @@ jobs:
|
|||||||
corepack enable
|
corepack enable
|
||||||
corepack prepare yarn@4.x --activate
|
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: Restore Yarn Cache
|
- name: Restore Yarn Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
id: yarn-cache
|
id: yarn-cache
|
||||||
|
|||||||
@@ -24,6 +24,13 @@ jobs:
|
|||||||
corepack enable
|
corepack enable
|
||||||
corepack prepare yarn@4.x --activate
|
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: Restore Yarn Cache
|
- name: Restore Yarn Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
id: yarn-cache
|
id: yarn-cache
|
||||||
|
|||||||
@@ -33,6 +33,13 @@ jobs:
|
|||||||
corepack enable
|
corepack enable
|
||||||
corepack prepare yarn@4.x --activate
|
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: Restore Yarn Cache
|
- name: Restore Yarn Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
id: yarn-cache
|
id: yarn-cache
|
||||||
|
|||||||
@@ -32,6 +32,13 @@ jobs:
|
|||||||
corepack enable
|
corepack enable
|
||||||
corepack prepare yarn@4.x --activate
|
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: Restore Yarn Cache
|
- name: Restore Yarn Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
id: yarn-cache
|
id: yarn-cache
|
||||||
|
|||||||
@@ -25,6 +25,13 @@ jobs:
|
|||||||
corepack enable
|
corepack enable
|
||||||
corepack prepare yarn@4.x --activate
|
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: Restore Yarn Cache
|
- name: Restore Yarn Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
id: yarn-cache
|
id: yarn-cache
|
||||||
|
|||||||
@@ -27,6 +27,13 @@ jobs:
|
|||||||
corepack enable
|
corepack enable
|
||||||
corepack prepare yarn@4.x --activate
|
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
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
yarn install --immutable
|
yarn install --immutable
|
||||||
|
|||||||
@@ -34,6 +34,13 @@ jobs:
|
|||||||
corepack enable
|
corepack enable
|
||||||
corepack prepare yarn@4.x --activate
|
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: Restore Yarn Cache
|
- name: Restore Yarn Cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
id: yarn-cache
|
id: yarn-cache
|
||||||
|
|||||||
Reference in New Issue
Block a user