Skip to content

Commit 70f6569

Browse files
authored
Attempt to fix git clones (DataDog#729)
1 parent b28f3d1 commit 70f6569

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ jobs:
99
RUBY_VERSION: '2.1.9'
1010
PUPPET_VERSION: '4.6.2'
1111
steps:
12+
# See https://github.blog/2021-09-01-improving-git-protocol-security-github/
13+
- run:
14+
name: Fix git clones
15+
command: echo -e '[url "https://github.com/"]\n insteadOf = "git://github.com/"' >> ~/.gitconfig
1216
- checkout
1317
- run:
1418
name: Install Ruby version
@@ -239,6 +243,10 @@ jobs:
239243
name: win/default # Comes with ruby 2.6, which is not supported on Windows as of puppet 6.10.1
240244
shell: bash.exe
241245
steps:
246+
# See https://github.blog/2021-09-01-improving-git-protocol-security-github/
247+
- run:
248+
name: Fix git clones
249+
command: echo -e '[url "https://github.com/"]\n insteadOf = "git://github.com/"' >> ~/.gitconfig
242250
- checkout
243251
- run:
244252
name: Run tests
@@ -263,6 +271,10 @@ jobs:
263271
STRICT_VARIABLES: 'yes'
264272
RUBY_VERSION: '2.5.3'
265273
steps:
274+
# See https://github.blog/2021-09-01-improving-git-protocol-security-github/
275+
- run:
276+
name: Fix git clones
277+
command: echo -e '[url "https://github.com/"]\n insteadOf = "git://github.com/"' >> ~/.gitconfig
266278
- checkout
267279
- run:
268280
name: Install Ruby versions
@@ -283,6 +295,10 @@ jobs:
283295
STRICT_VARIABLES: 'yes'
284296
RUBY_VERSION: '2.5.3'
285297
steps:
298+
# See https://github.blog/2021-09-01-improving-git-protocol-security-github/
299+
- run:
300+
name: Fix git clones
301+
command: echo -e '[url "https://github.com/"]\n insteadOf = "git://github.com/"' >> ~/.gitconfig
286302
- checkout
287303
- run:
288304
name: Install Ruby versions

0 commit comments

Comments
 (0)