From 0f4154005a2fcd711df5260b803f577a66ed00e8 Mon Sep 17 00:00:00 2001 From: Nuno Marques Date: Thu, 16 May 2024 14:02:30 +0100 Subject: [PATCH] ci: github: add ownership workaround --- .github/workflows/checks.yml | 2 ++ .github/workflows/clang-tidy.yml | 2 ++ .github/workflows/compile_linux.yml | 2 +- .github/workflows/compile_linux_arm64.yml | 2 ++ .github/workflows/compile_nuttx.yml | 2 ++ .github/workflows/deploy_all.yml | 6 +++++- .../workflows/ekf_functional_change_indicator.yml | 2 ++ .github/workflows/ekf_update_change_indicator.yml | 2 ++ .github/workflows/failsafe_sim.yml | 2 ++ .github/workflows/mavros_mission_tests.yml | 2 ++ .github/workflows/mavros_offboard_tests.yml | 2 ++ .github/workflows/metadata.yml | 12 ++++++++++++ .github/workflows/nuttx_env_config.yml | 2 ++ .github/workflows/sitl_tests.yml | 2 ++ 14 files changed, 40 insertions(+), 2 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index a1a1aa2dda..9eb96202e9 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -34,6 +34,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{ secrets.ACCESS_TOKEN }} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: check environment run: | diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index 79eac6710e..1ebedb4729 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -16,6 +16,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{secrets.ACCESS_TOKEN}} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: make clang-tidy-quiet run: make clang-tidy-quiet diff --git a/.github/workflows/compile_linux.yml b/.github/workflows/compile_linux.yml index 8383902a8f..056c67527e 100644 --- a/.github/workflows/compile_linux.yml +++ b/.github/workflows/compile_linux.yml @@ -28,7 +28,7 @@ jobs: with: token: ${{secrets.ACCESS_TOKEN}} - name: ownership workaround - run: git config --system --add safe.directory '*' + run: git config --global --add safe.directory '*' - name: Prepare ccache timestamp id: ccache_cache_timestamp shell: cmake -P {0} diff --git a/.github/workflows/compile_linux_arm64.yml b/.github/workflows/compile_linux_arm64.yml index 4a4c866f90..991c4b2f9e 100644 --- a/.github/workflows/compile_linux_arm64.yml +++ b/.github/workflows/compile_linux_arm64.yml @@ -24,6 +24,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{secrets.ACCESS_TOKEN}} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: Prepare ccache timestamp id: ccache_cache_timestamp diff --git a/.github/workflows/compile_nuttx.yml b/.github/workflows/compile_nuttx.yml index 0cbf7d3127..d653fc472d 100644 --- a/.github/workflows/compile_nuttx.yml +++ b/.github/workflows/compile_nuttx.yml @@ -83,6 +83,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{secrets.ACCESS_TOKEN}} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: Prepare ccache timestamp id: ccache_cache_timestamp diff --git a/.github/workflows/deploy_all.yml b/.github/workflows/deploy_all.yml index fd90c48a61..49b891b399 100644 --- a/.github/workflows/deploy_all.yml +++ b/.github/workflows/deploy_all.yml @@ -17,6 +17,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{secrets.ACCESS_TOKEN}} + - name: ownership workaround + run: git config --global --add safe.directory '*' - id: set-matrix run: echo "::set-output name=matrix::$(./Tools/generate_board_targets_json.py)" build: @@ -29,9 +31,11 @@ jobs: - uses: actions/checkout@v1 with: token: ${{secrets.ACCESS_TOKEN}} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: ownership workaround - run: git config --system --add safe.directory '*' + run: git config --global --add safe.directory '*' - name: make ${{matrix.target}} run: make ${{matrix.target}} diff --git a/.github/workflows/ekf_functional_change_indicator.yml b/.github/workflows/ekf_functional_change_indicator.yml index 0427373168..7a2ad82015 100644 --- a/.github/workflows/ekf_functional_change_indicator.yml +++ b/.github/workflows/ekf_functional_change_indicator.yml @@ -10,6 +10,8 @@ jobs: - uses: actions/checkout@v2.3.1 with: fetch-depth: 0 + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: checkout newest version of branch run: | git fetch origin pull/${{github.event.pull_request.number}}/head:${{github.head_ref}} diff --git a/.github/workflows/ekf_update_change_indicator.yml b/.github/workflows/ekf_update_change_indicator.yml index b21e759d4c..9c7df31b91 100644 --- a/.github/workflows/ekf_update_change_indicator.yml +++ b/.github/workflows/ekf_update_change_indicator.yml @@ -13,6 +13,8 @@ jobs: - uses: actions/checkout@v2.3.1 with: fetch-depth: 0 + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: main test updates change indication files run: make tests TESTFILTER=EKF - name: Check if there exists diff and save result in variable diff --git a/.github/workflows/failsafe_sim.yml b/.github/workflows/failsafe_sim.yml index d4f45ce82b..a090a5802b 100644 --- a/.github/workflows/failsafe_sim.yml +++ b/.github/workflows/failsafe_sim.yml @@ -27,6 +27,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{ secrets.ACCESS_TOKEN }} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: check environment run: | diff --git a/.github/workflows/mavros_mission_tests.yml b/.github/workflows/mavros_mission_tests.yml index 49a0bd47d2..9fa6f6f66c 100644 --- a/.github/workflows/mavros_mission_tests.yml +++ b/.github/workflows/mavros_mission_tests.yml @@ -31,6 +31,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{ secrets.ACCESS_TOKEN }} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: Prepare ccache timestamp id: ccache_cache_timestamp diff --git a/.github/workflows/mavros_offboard_tests.yml b/.github/workflows/mavros_offboard_tests.yml index d81ecdb096..3b51dfb6c9 100644 --- a/.github/workflows/mavros_offboard_tests.yml +++ b/.github/workflows/mavros_offboard_tests.yml @@ -26,6 +26,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{ secrets.ACCESS_TOKEN }} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: Prepare ccache timestamp id: ccache_cache_timestamp diff --git a/.github/workflows/metadata.yml b/.github/workflows/metadata.yml index 2e8dda396a..c1ea9ef546 100644 --- a/.github/workflows/metadata.yml +++ b/.github/workflows/metadata.yml @@ -16,6 +16,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{ secrets.ACCESS_TOKEN }} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: airframe metadata run: | @@ -42,6 +44,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{ secrets.ACCESS_TOKEN }} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: module documentation run: | @@ -57,6 +61,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{ secrets.ACCESS_TOKEN }} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: parameter metadata run: | @@ -81,6 +87,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{ secrets.ACCESS_TOKEN }} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: events metadata run: | @@ -108,6 +116,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{ secrets.ACCESS_TOKEN }} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: uORB graph run: | @@ -123,6 +133,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{ secrets.ACCESS_TOKEN }} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: PX4 ROS2 msgs run: | diff --git a/.github/workflows/nuttx_env_config.yml b/.github/workflows/nuttx_env_config.yml index 47ffc78091..8690ae2294 100644 --- a/.github/workflows/nuttx_env_config.yml +++ b/.github/workflows/nuttx_env_config.yml @@ -21,6 +21,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{secrets.ACCESS_TOKEN}} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: make ${{matrix.config}} env: diff --git a/.github/workflows/sitl_tests.yml b/.github/workflows/sitl_tests.yml index fe40384fad..587a9a9f47 100644 --- a/.github/workflows/sitl_tests.yml +++ b/.github/workflows/sitl_tests.yml @@ -27,6 +27,8 @@ jobs: - uses: actions/checkout@v1 with: token: ${{ secrets.ACCESS_TOKEN }} + - name: ownership workaround + run: git config --global --add safe.directory '*' - name: Download MAVSDK run: wget "https://github.com/mavlink/MAVSDK/releases/download/v$(cat test/mavsdk_tests/MAVSDK_VERSION)/libmavsdk-dev_$(cat test/mavsdk_tests/MAVSDK_VERSION)_ubuntu20.04_amd64.deb"