-
-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UPM authentication and runAsHostUser on self-hosted linux runner #660
Comments
Here is something you might try to resolve your authentication issue with UPM. (Note: I did not try this). When using
The UPM configuration file is documented here: https://docs.unity3d.com/Manual/upm-config.html |
Hi @GabLeRoux, I'm working on the same issue as @eberleinNeobird and I've tried to apply your suggestions. Unfortunately the Unity instance inside the docker container still doesn't seem to be able to locate it. Unity doesn't log where it's looking for this configuration file and wether or not it's found anything either. Is there a way to mount additional directories to the docker container or at least pass an additional environment variable? Ideally without needing to configure custom docker images. |
I'm not exactly sure how this can be achieved with github-actions. I think the most important thing here is to figure out where Unity reads Maybe a way to investigate this would be to fork the If the container can't see I don't have much information on that either. |
Alright, so I've had some time to look at this issue again and I've managed to make it work for our case. --env UPM_USER_CONFIG_FILE=/root/.upmconfig.toml
I'm still not fully sure what the root cause is and if this is something that could be added to the action upstream. |
Bug description
I created a self-hosted Linux runner for GitHub, to build my unity app. When I set the unity-builder
runAsHosteUser
to true authentication to UPM Server fails:How to reproduce
Install Linux runner like described on:
https://game.ci/docs/self-hosting/host-provisioning/ubuntu-setup
Use these two steps:
and
matrix.runAsHostUser
of course is true.Expected behavior
UPM packages should be resolved.
Maybe it's because of step Setup, UPM Authentication does not run as HostUser.
Thx for your help.
The text was updated successfully, but these errors were encountered: