From 72c49352a3e6feb2257c09f668385189fae2cac6 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 2 Feb 2026 16:45:41 +0000 Subject: [PATCH] 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 --- .github/workflows/build.yml | 7 +++++++ .github/workflows/lint.yml | 7 +++++++ .github/workflows/manual-release.yml | 7 +++++++ .github/workflows/publish-release.yml | 7 +++++++ .github/workflows/test.yml | 7 +++++++ .github/workflows/update-proto.yml | 7 +++++++ .github/workflows/update-version.yml | 7 +++++++ 7 files changed, 49 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8bec9b62..e3883c5b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,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: Restore Yarn Cache uses: actions/cache@v3 id: yarn-cache diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8d7e6fd9..04baec29 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,6 +24,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: Restore Yarn Cache uses: actions/cache@v3 id: yarn-cache diff --git a/.github/workflows/manual-release.yml b/.github/workflows/manual-release.yml index 3618a4ff..48052276 100644 --- a/.github/workflows/manual-release.yml +++ b/.github/workflows/manual-release.yml @@ -33,6 +33,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: Restore Yarn Cache uses: actions/cache@v3 id: yarn-cache diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 02014256..db10d107 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -32,6 +32,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: Restore Yarn Cache uses: actions/cache@v3 id: yarn-cache diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c1f59533..f64dad0e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,6 +25,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: Restore Yarn Cache uses: actions/cache@v3 id: yarn-cache diff --git a/.github/workflows/update-proto.yml b/.github/workflows/update-proto.yml index 439face8..2a76abdd 100644 --- a/.github/workflows/update-proto.yml +++ b/.github/workflows/update-proto.yml @@ -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 diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index 2ccfeb82..d5faba0d 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -34,6 +34,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: Restore Yarn Cache uses: actions/cache@v4 id: yarn-cache