Skip to content

Commit 19a8e21

Browse files
committed
Configure Git to use HTTPS rather than SSH
1 parent 6b9f9ad commit 19a8e21

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/linux_test_install.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,14 @@ jobs:
196196
node-version: ${{ matrix.NODE_VERSION }}
197197
timeout-minutes: 5
198198

199+
# Configure Git:
200+
- name: 'Configure Git'
201+
202+
# Force Git to use HTTPS rather than SSH:
203+
run: |
204+
git config --global url."https://github.com/".insteadOf git@github.com:
205+
git config --global url."https://".insteadOf git://
206+
199207
# Print debug info:
200208
- name: 'Print debug info'
201209
run: |

.github/workflows/macos_test_npm_install.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ jobs:
157157
node-version: ${{ matrix.NODE_VERSION }}
158158
timeout-minutes: 5
159159

160+
# Configure Git:
161+
- name: 'Configure Git'
162+
163+
# Force Git to use HTTPS rather than SSH:
164+
run: |
165+
git config --global url."https://github.com/".insteadOf git@github.com:
166+
git config --global url."https://".insteadOf git://
167+
160168
# Print debug info:
161169
- name: 'Print debug info'
162170
run: |

.github/workflows/windows_test_npm_install.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,13 @@ jobs:
158158
# Configure Git:
159159
- name: 'Configure Git'
160160

161-
# Instruct `git` to convert CRLF line endings (Windows) to LF on commit.
161+
# Instruct Git to convert CRLF line endings (Windows) to LF on commit and force Git to use HTTPS rather than SSH.
162162
#
163163
# [1]: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#Formatting-and-Whitespace
164-
run: git config --global core.autocrlf input
164+
run: |
165+
git config --global core.autocrlf input
166+
git config --global url."https://github.com/".insteadOf git@github.com:
167+
git config --global url."https://".insteadOf git://
165168
timeout-minutes: 2
166169

167170
# Configure NVS:

0 commit comments

Comments
 (0)