How to use the github app/oauth app to register the self-hosted runner at the organization?
I have made some changes to your Dockerfile and the bash file so I can use it to register the self-hosted docker runner at the organization level.
The problem is that I need the Personal Access Token of the Github organization admin. I am not sure if it's a good practice. I looked the Github app or Oauth app with device flow but it still needs some manual things like entering the code and etc..
What is the best way to authenticate for registering the runner?
What kind of changes have you made? I'm about to use this runner for the same purpose (organisation, private repo) and I was planning to create a machine user (https://docs.github.com/en/developers/overview/managing-deploy-keys#machine-users) and use it for the runner.