game-ci / game-ci/unity-request-activation-file

Wrong temp path is used

Open
#90 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
57
Forks
34
PR merge metrics
No merged PRs in 30d

Description

**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
```

Contributor guide

Open the contributing guide

Research direction

Start in src/model/docker.ts and compare its mounted paths with how the unity-builder action uses RUNNER_TEMP. Reproduce the action on a runner where /home/runner is inaccessible, then verify that the mounts use the environment-provided temporary path and the activation file is produced successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, github-actions, typescript
Domain
ci-cd, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.