Make Drone.io log into Github without using the UI

Hello there!

I’m developing a Terraform module that will deploy Drone.io to a Docker Swarm running on Amazon EC2 instances.

The problem is, even though all of the deploy configuration is actually done, Drone.io requires (As far as I know) the user to access its UI in order to log into my company’s Github account using the OAuth App I’ve set up.

Is there any way to automate this step?

I’ve looked everywhere but couldn’t find anything.

Thanks in advance!

Since Drone is using OAuth apps, and OAuth by design is centered around the manual user consent, it’s unlikely that you can make this work. That would be a security flaw in OAuth.