fix(ci): configure git to use HTTPS for GitHub dependencies

fix(ci): configure git to use HTTPS for GitHub dependencies
This commit is contained in:
Renato Alcara
2026-02-02 14:28:59 -03:00
committed by GitHub
7 changed files with 49 additions and 0 deletions
+7
View File
@@ -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
+7
View File
@@ -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
+7
View File
@@ -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
+7
View File
@@ -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
+7
View File
@@ -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
+7
View File
@@ -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
+7
View File
@@ -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