From 9319dd5dbd9f9571227dcdc6f6b886c57b3ce76a Mon Sep 17 00:00:00 2001 From: Ivan Tustanivskyi Date: Wed, 16 Oct 2024 16:40:42 +0300 Subject: [PATCH] More manipulations with gh runner user --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61ed079b..9ef53092 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -164,6 +164,8 @@ jobs: run: | echo ${{ secrets.DOCKER_TOKEN }} | docker login ghcr.io -u ${{ secrets.DOCKER_USERNAME }} --password-stdin # We start the container with the user ID of the parent GH action user to avoid permission issues on volume. + sudo useradd -m -u 1001 -g 1000 gh-runner + sudo -u gh-runner # For UE 5.4 we have to enable ipv6 to fix container startup issues. See https://github.com/adamrehn/ue4-docker/issues/357 uid=$(id -u) # the GH action user ID gid=1000 # the ue4 group in the docker container