Our current setup with Jenkins works well, it can reach the license server, but when installing a self-hosted github runner on the same machine and using the action in this repo, I get License: Activation failed: There is no license for this product.

The command line parameters are exactly the same as when running from Jenkins
The cli.properties file, also exactly the same as for Jenkins:

All other files are also exactly the same. I think this is related to the run being inside a docker container. On Jenkins I got docker to work only if it was exactly the same container for every run. Changing all containers' host name to be identical was not enough.