From 25a8b687537dd9ddf9f7516789732558a23483c4 Mon Sep 17 00:00:00 2001 From: Nick Liu Date: Wed, 14 Dec 2022 17:57:52 -0600 Subject: [PATCH] Tests: Opt out of Git mitigation of CVE-2022-24765 We are always a single user when running unit tests in the container. Suppresses this error: ``` $ git submodule update --init --recursive --remote fatal: detected dubious ownership in repository at '/__w/e107/e107' To add an exception for this directory, call: git config --global --add safe.directory /__w/e107/e107 ``` --- .github/workflows/test-unit.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index 1827f34ac..4b676df31 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -119,6 +119,9 @@ jobs: run: composer update --prefer-dist --no-progress working-directory: ./e107_tests/ + - name: Opt out of CVE-2022-24765 mitigation + run: git config --global safe.directory '*' + - name: Download Git submodule dependencies run: git submodule update --init --recursive --remote