game-ci/unity-request-activation-file

Wrong temp path is used

mgrman-unity opened this issue · 0 comments

Bug description

In https://github.com/game-ci/unity-request-activation-file/blob/main/src/model/docker.ts there are several volumes mounted from the /home/runner/ folder. The temp folder is not always at this location, e.g. if you have multiple runners on the same machine. Instead path from RUNNER_TEMP environmental variable should be used ( https://github.com/game-ci/unity-builder/ already uses this environmental variable).

How to reproduce

Run the action on a runner where the /home/runner/ path is not accessible, and RUNNER_TEMP points somewhere else

  • Expected behavior

Actions works as expected and produce activation file.

Additional details

Error:

docker: Error response from daemon: error while creating mount source path '/home/runner/work/_temp/_github_home': mkdir /home/runner: permission denied.
Error: The process '/usr/bin/docker' failed with exit code 126