Skip to main content
Tembo connects to GitHub through a GitHub App you create for your install. After you install the chart, its notes link to GitHub’s form with every setting filled in. You create the app, store its credentials in a Kubernetes Secret, and Tembo reads them from there. Before you begin, you need:
  • Tembo installed, with release tembo in namespace tembo in the examples.
  • To create the app under a GitHub organization: owner or GitHub App manager of that organization.

Step 1: Create the GitHub App

Print the install notes:
Under GitHub, open the link. It goes to GitHub’s New GitHub App form with your install’s URLs, permissions and events filled in. Click Create GitHub App; if GitHub says the name is taken, change it. The link creates the app under your personal GitHub account. To create it under an organization, first set the organization in your values and apply the change, then print the notes again:
The form uses the webhook secret the chart generated. If GitHub can’t reach your install, for example on an internal network, see Public API host.
For Dependabot alert triggers, also give the app the Dependabot alerts permission and the Dependabot alert event (see Permissions).

Step 2: Generate a client secret and a private key

On the app’s settings page:
  1. Under Client secrets, click Generate a new client secret and copy it. GitHub shows it only once.
  2. Under Private keys, click Generate a private key. GitHub downloads a .pem file.
Also note the App ID, the Client ID, and the app’s slug, from its URL https://github.com/apps/<app slug>.

Step 3: Give Tembo the credentials

Store them in a Secret. Replace each <...>, including the angle brackets:
Check that BOT_ID is a number: null means the slug is wrong. Tembo’s commits are attributed to clientUserEmail. Then reference the Secret in your values.yaml, and apply the change with helm upgrade:
Values in the Secret override the same keys under github in your Helm values. To render the chart with helm template, see GitOps.

Step 4: Connect GitHub

Once you’ve signed in to Tembo, connect GitHub from Tembo, not from GitHub: Tembo only accepts an installation that starts in Tembo.
  1. In Tembo, go to Settings > Integrations and connect GitHub.
  2. Choose the organization or account, and All repositories or specific ones, then click Install and authorize the app.
  3. Enable the repositories Tembo should work on. You can change them later in Settings > Repositories.
To connect a GitHub organization, you need to be one of its owners; otherwise GitHub sends the owners an installation request. To check webhook deliveries, open the app’s Advanced tab on GitHub. This connects repositories. To let users sign in with GitHub or connect personal accounts, see GitHub sign-in.

Create the app by hand

Use this if you can’t read the install notes, for example when a GitOps tool renders the chart. Open New GitHub App: https://github.com/organizations/<your-org>/settings/apps/new for an organization, or GitHub > Settings > Developer settings > GitHub Apps > New GitHub App for your account. Fill in: Then continue from Step 2, and add your webhook secret to the Secret in Step 3 as webhookSecret.

Rotate credentials

  1. Generate a new client secret or private key on the app’s settings page.
  2. Update the Secret with the same kubectl create secret ... | kubectl apply command.
  3. Apply the change with helm upgrade, and wait for the controller to replace the agent hosts.
  4. Delete the old client secret or private key on GitHub.

Next

Slack and others

Connect Slack, Linear, Jira and more.

Need Help?

If you run into any issues, contact support@tembo.io.