From 4e9de3e0880f8d2e61127d38aae31db0bb34d643 Mon Sep 17 00:00:00 2001 From: Callum Macdonald Date: Tue, 20 Feb 2024 13:23:17 +0100 Subject: [PATCH] Force git to use https in workflows (#2681) Force git to use https in workflows. #2679 --- .github/workflows/lint.yml | 4 ++++ .github/workflows/test.yml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 44ed6284e0..593a67183b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,6 +28,10 @@ jobs: restore-keys: | ${{ runner.OS }}-node- ${{ runner.OS }}- + - name: Reconfigure git to use HTTP authentication + run: > + git config --global url."https://github.com/".insteadOf + ssh://git@github.com/ - name: Install dependencies run: npm ci - name: Lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e4b0a40766..76cea137c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,6 +23,10 @@ jobs: restore-keys: | ${{ runner.OS }}-node- ${{ runner.OS }}- + - name: Reconfigure git to use HTTP authentication + run: > + git config --global url."https://github.com/".insteadOf + ssh://git@github.com/ - name: Install dependencies run: npm ci - name: Test client @@ -52,6 +56,10 @@ jobs: restore-keys: | ${{ runner.OS }}-node- ${{ runner.OS }}- + - name: Reconfigure git to use HTTP authentication + run: > + git config --global url."https://github.com/".insteadOf + ssh://git@github.com/ - name: Install dependencies run: npm ci - name: Test server