summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-10-20 09:46:04 +0200
committerGitHub <noreply@github.com>2022-10-20 09:46:04 +0200
commit89cf5004dbf81b4202ea096e7a9dcc009a604be0 (patch)
tree04f019a834597c830e882772166afe33ea1b48e0 /.github
parent8aac0d09d4272609da66c7504745d06506a64080 (diff)
downloadspack-89cf5004dbf81b4202ea096e7a9dcc009a604be0.tar.gz
spack-89cf5004dbf81b4202ea096e7a9dcc009a604be0.tar.bz2
spack-89cf5004dbf81b4202ea096e7a9dcc009a604be0.tar.xz
spack-89cf5004dbf81b4202ea096e7a9dcc009a604be0.zip
FIX CI after git update (#33429)
Add `protocol.file.allow always` to git configuration in CI
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/setup_git.ps14
-rwxr-xr-x.github/workflows/setup_git.sh4
2 files changed, 8 insertions, 0 deletions
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}"