From 89cf5004dbf81b4202ea096e7a9dcc009a604be0 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Thu, 20 Oct 2022 09:46:04 +0200 Subject: FIX CI after git update (#33429) Add `protocol.file.allow always` to git configuration in CI --- .github/workflows/setup_git.ps1 | 4 ++++ .github/workflows/setup_git.sh | 4 ++++ 2 files changed, 8 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/setup_git.ps1 b/.github/workflows/setup_git.ps1 index d68f90a7ae..0acb9a9f46 100644 --- a/.github/workflows/setup_git.ps1 +++ b/.github/workflows/setup_git.ps1 @@ -6,6 +6,10 @@ git config --global user.email "spack@example.com" git config --global user.name "Test User" git config --global core.longpaths true +# See https://github.com/git/git/security/advisories/GHSA-3wp6-j8xr-qw85 (CVE-2022-39253) +# This is needed to let some fixture in our unit-test suite run +git config --global protocol.file.allow always + if ($(git branch --show-current) -ne "develop") { git branch develop origin/develop diff --git a/.github/workflows/setup_git.sh b/.github/workflows/setup_git.sh index 4eb416720b..ee555ff71a 100755 --- a/.github/workflows/setup_git.sh +++ b/.github/workflows/setup_git.sh @@ -2,6 +2,10 @@ git config --global user.email "spack@example.com" git config --global user.name "Test User" +# See https://github.com/git/git/security/advisories/GHSA-3wp6-j8xr-qw85 (CVE-2022-39253) +# This is needed to let some fixture in our unit-test suite run +git config --global protocol.file.allow always + # create a local pr base branch if [[ -n $GITHUB_BASE_REF ]]; then git fetch origin "${GITHUB_BASE_REF}:${GITHUB_BASE_REF}" -- cgit v1.2.3-60-g2f50