summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-05-17 16:23:14 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2022-05-17 16:24:43 -0400
commitfd8d3673c83379453df5f092704f84897119d1d2 (patch)
tree68995aeb7a3231d3fce5561232e21bfcc27776db /.github
parentc6416100e8e2418608b093682be306771134ff63 (diff)
downloadlibgit2-fd8d3673c83379453df5f092704f84897119d1d2.tar.gz
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
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 16428be6e..2b092e8f5 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 \