From e004c57485131aa0ad03418ed52cd5a2711b3b14 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 17 Jan 2024 13:54:12 -0500 Subject: [PATCH] Work around github weirdness Currently on the "update submodule" step, we're getting this: git submodule update --init --recursive fatal: detected dubious ownership in repository at '/__w/certwrapper/certwrapper' To add an exception for this directory, call: git config --global --add safe.directory /__w/certwrapper/certwrapper make: *** [Makefile:126: update] Error 128 Given the absolute lack of any details of what user the owner is and why that might be dubious, I've chosen to follow it's advice without prying too hard. Signed-off-by: Peter Jones --- .github/workflows/pullrequest.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index 8fd2e8e..7cd5abc 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -82,6 +82,10 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 submodules: recursive + - name: Work around github/git ownership weirdness + id: ignore-directory-ownership + run: | + git config --global --add safe.directory /__w/certwrapper/certwrapper - name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }} id: update-submodules run: | @@ -152,6 +156,10 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 submodules: recursive + - name: Work around github/git ownership weirdness + id: ignore-directory-ownership + run: | + git config --global --add safe.directory /__w/certwrapper/certwrapper - name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }} id: update-submodules run: |