Skip to content

Commit 0da300b

Browse files
committed
feat: configure git safe.directory in Alpine Docker setup for proper permissions
1 parent 73dbc10 commit 0da300b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,11 @@ jobs:
289289
alpine:latest \
290290
tail -f /dev/null
291291
docker exec alpine sh -c "apk update && apk add --no-cache git gcc g++ make cmake sqlite musl-dev linux-headers python3 curl-dev openssl-dev zlib-dev"
292+
# Tell git inside the container that the bind-mounted workspace is
293+
# safe — git runs as root in the container while the files are
294+
# owned by the runner user, which trips git's "dubious ownership"
295+
# check.
296+
docker exec alpine git config --global --add safe.directory '*'
292297
293298
- name: linux install opencl
294299
if: matrix.name == 'linux-gpu'

0 commit comments

Comments
 (0)