From 9d9a8d2df63324c63f86a6882d486e12c7fac700 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Thu, 25 Jul 2024 04:13:16 -0700 Subject: [PATCH] Remove unnecessary git config --global --add safe.directory (#45663) Summary: `git config --global --add safe.directory` is no longer necessary because is done inside the Docker container. ## Changelog: [INTERNAL] - Remove unnecessary git config --global --add safe.directory Pull Request resolved: https://github.com/facebook/react-native/pull/45663 Test Plan: CI Reviewed By: blakef Differential Revision: D60229662 Pulled By: cortinico fbshipit-source-id: aa817ff27adaab3e3105ab22af74a871b377295b --- .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 deletions(-) diff --git a/.github/actions/build-android/action.yml b/.github/actions/build-android/action.yml index 656cc50d165..ed6e461af85 100644 --- a/.github/actions/build-android/action.yml +++ b/.github/actions/build-android/action.yml @@ -7,9 +7,6 @@ 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 6b56ffe406a..e97d47f1cea 100644 --- a/.github/actions/build-npm-package/action.yml +++ b/.github/actions/build-npm-package/action.yml @@ -14,9 +14,6 @@ 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 9d86d8e75d5..fc88181c964 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -281,8 +281,6 @@ 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: