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