What environment variables can I use to configure GitHub?

I would like to deploy a retool instance with github pre-configured. In the documentation here I see environment variables for the GitHub AppID, App InstanceID, and App Private Key. I can use these and my instance will have these fields populated in the UI when it starts.

However, I don't environment variables for the Organization, Repository, or Main Branch. Many of the other source control providers have variables like this mentioned. Is there any support for this?

1 Like

Hey @James_Faix! Thanks for reaching out. :slightly_smiling_face:

We refactored the GitHub integration relatively recently and are now encouraging users to utilize the Retool API for configuring a variety of org settings, including SSO and source control. The primary reason for this is that environment variables can't be differentiated for distinct Spaces, which are seeing increased adoption among Enterprise orgs.

If you're spinning up and configuring new instances fairly frequently, I recommend looking at our new Terraform provider! It's in active development and is a convenient abstraction layer that sits on top of the existing API.

I hope that helps! Let me know if you have any additional questions.