From deccf2768004a0540cc85f858a0eeba9e501305d Mon Sep 17 00:00:00 2001 From: Benjy Weinberger Date: Wed, 29 Jun 2022 07:17:47 -0400 Subject: [PATCH] Trying something --- .github/workflows/test.yaml | 3 ++- build-support/bin/generate_github_workflows.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d6cff79fdbed..f179d6df826b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -300,7 +300,8 @@ jobs: with: fetch-depth: 10 - name: Configure Git - run: git config --global safe.directory "$GITHUB_WORKSPACE" + run: echo "XXX ${GITHUB_WORKSPACE} XXX" && git config --global --add safe.directory + "${GITHUB_WORKSPACE}" - if: github.event_name == 'push' name: Get commit message for branch builds run: 'echo "COMMIT_MESSAGE<> $GITHUB_ENV diff --git a/build-support/bin/generate_github_workflows.py b/build-support/bin/generate_github_workflows.py index 7819a578ac34..f0e479321b8f 100644 --- a/build-support/bin/generate_github_workflows.py +++ b/build-support/bin/generate_github_workflows.py @@ -114,7 +114,7 @@ def checkout(*, containerized: bool = False) -> Sequence[Step]: # + https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24765 { "name": "Configure Git", - "run": 'git config --global safe.directory "$GITHUB_WORKSPACE"', + "run": 'echo "XXX ${GITHUB_WORKSPACE} XXX" && git config --global --add safe.directory "${GITHUB_WORKSPACE}"', } ) steps.extend(