Skip to content

Commit 6311d04

Browse files
committed
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 <pjones@redhat.com>
1 parent 7ab4abf commit 6311d04

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/pullrequest.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ jobs:
8282
ref: ${{ github.event.pull_request.head.sha }}
8383
fetch-depth: 0
8484
submodules: recursive
85+
- name: Work around github/git ownership weirdness
86+
id: ignore-directory-ownership
87+
run: |
88+
git config --global --add safe.directory /__w/certwrapper/certwrapper
8589
- name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }}
8690
id: update-submodules
8791
run: |
@@ -152,6 +156,10 @@ jobs:
152156
ref: ${{ github.event.pull_request.head.sha }}
153157
fetch-depth: 0
154158
submodules: recursive
159+
- name: Work around github/git ownership weirdness
160+
id: ignore-directory-ownership
161+
run: |
162+
git config --global --add safe.directory /__w/certwrapper/certwrapper
155163
- name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }}
156164
id: update-submodules
157165
run: |

0 commit comments

Comments
 (0)