Skip to content

Commit fbc1efe

Browse files
authored
Added config to setup safe-directory (#2)
Need to avoid this error: fatal: detected dubious ownership in repository at '/github/workspace'
1 parent 30bfe95 commit fbc1efe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
- name: Check out code into the Go module directory
1616
uses: actions/checkout@v2
1717

18+
- name: Fix git safe.directory in container
19+
run: mkdir -p /home/runner/work/_temp/_github_home && printf "[safe]\n\tdirectory = /github/workspace" > /home/runner/work/_temp/_github_home/.gitconfig
20+
1821
- name: Build Catalog
1922
run: make catalog
2023

0 commit comments

Comments
 (0)