From 2ca01b4d0452dad27eadcba5a408c06b247c570f Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Wed, 7 Aug 2024 06:39:31 -0700 Subject: [PATCH] Revert "Remove unnecessary git config --global --add safe.directory" (#45929) Summary: This reverts commit 9d9a8d2df63324c63f86a6882d486e12c7fac700. ## Changelog: [INTERNAL] - This reverts commit 9d9a8d2df63324c63f86a6882d486e12c7fac700. Pull Request resolved: https://github.com/facebook/react-native/pull/45929 Test Plan: CI Reviewed By: blakef Differential Revision: D60901502 Pulled By: cortinico fbshipit-source-id: 2b7a7908a29f031c1f229907aa899a8a6960da4b --- .github/actions/build-android/action.yml | 3 +++ .github/actions/build-npm-package/action.yml | 3 +++ .github/workflows/test-all.yml | 2 ++ 3 files changed, 8 insertions(+) diff --git a/.github/actions/build-android/action.yml b/.github/actions/build-android/action.yml index 7f589b5eeea..cf2367f647e 100644 --- a/.github/actions/build-android/action.yml +++ b/.github/actions/build-android/action.yml @@ -10,6 +10,9 @@ inputs: runs: using: composite steps: + - name: Setup git safe folders + shell: bash + run: git config --global --add safe.directory '*' - name: Setup node.js uses: ./.github/actions/setup-node - name: Install node dependencies diff --git a/.github/actions/build-npm-package/action.yml b/.github/actions/build-npm-package/action.yml index c8df158732e..295868a376b 100644 --- a/.github/actions/build-npm-package/action.yml +++ b/.github/actions/build-npm-package/action.yml @@ -14,6 +14,9 @@ inputs: runs: using: composite steps: + - name: Setup git safe folders + shell: bash + run: git config --global --add safe.directory '*' - name: Create /tmp/hermes/osx-bin directory shell: bash run: mkdir -p /tmp/hermes/osx-bin diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index f9a8dd601fc..fbb8bc6455a 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -478,6 +478,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup git safe folders + run: git config --global --add safe.directory '*' - name: Download npm package artifact uses: actions/download-artifact@v4.1.3 with: