game-ci / unity-request-activation-file

Unity - Request manual activation file (part of unity-actions)
https://github.com/marketplace/actions/unity-request-activation-file
MIT License
54 stars 33 forks source link

Wrong temp path is used #90

Open mgrman-unity opened 1 year ago

mgrman-unity commented 1 year ago

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

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