Cloud Build + Unity Package Manager

Hi,
I’ve set up a secured npm server and it works fine locally. Credentials are stored in .upmconfig.toml which is in home location. This location cannot be changed due to the UnityPackageManager design.

The approach which I can see is to write bash script which will take credentials from env var and put in .upmconfig and remove it after build.

So I’m asking how I can put that credentials in cloud machine and be sure that they are secured. Or there is other way?

Unfortunately the Unity Package Manager does not currently support method other than upmconfig.toml so yes your bash script approach will be necessary. The Package Manager team are aware of the need to support alternative approaches but this is not currently prioritized for work.

Great, thanks for the reply!

There are any update on this topic? I have the same kind of issue

As of today, the machines are completely isolated from all other machines and the disks are deleted once the build completes. You can safely write a file to the home directory and it will be removed after. If you are worried, then in your post-build script you can always clean up the config file.