ci: use uid/gid of actions runner Avoid mismatches between the container uid/gid and the actions runner, build the container with the actions runner's uid/gid
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 16428be..2b092e8 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -240,7 +240,7 @@ jobs:
mkdir build
docker run \
--rm \
- --user libgit2:libgit2 \
+ --user "$(id -u):$(id -g)" \
-v "$(pwd)/source:/home/libgit2/source" \
-v "$(pwd)/build:/home/libgit2/build" \
-w /home/libgit2 \