Skip to content

Connect GitHub with the AssertThat GitHub App

The AssertThat GitHub App is the simplest way to connect GitHub. A Jira admin installs it once for the Jira site. After that:

  • there are no access tokens to create, store or rotate: AssertThat gets short-lived tokens from GitHub when it syncs;
  • GitHub decides which repositories AssertThat can reach. You choose them when you install the app and can change them in GitHub at any time;
  • pushes reach AssertThat through the app, so projects where the repository is the master import on every push without a webhook.

The app asks GitHub for Contents (read and write), Pull requests (read and write) and Metadata (read) on the repositories you choose, and for push events.

You need to be a Jira admin, and an owner of the GitHub organisation (or the GitHub account) that holds the repositories.

  1. In Jira, go to Settings (cog) > Apps > AssertThat BDD and open the Git connections tab.

  2. Select Install GitHub App. GitHub opens in a new tab.

    The Git connections tab with Add token connection and Install GitHub App

  3. In GitHub, choose the organisation or account, then Only select repositories and pick the repositories that hold your feature files. Select Install.

  4. GitHub sends you to an AssertThat confirmation page. Check the Jira site, the Jira admin who started the installation and the GitHub account, then select Confirm. When the page shows Connected, close the tab.

  5. Back in Jira, select Refresh. The connection appears in the list with the type GitHub App.

The confirmation step makes sure a GitHub installation is only ever linked to the Jira site that asked for it. Install links expire after 15 minutes and work once.

The Git connections list shows each connection’s type, which repositories and projects may use it, which projects use it, and when it was last used and tested. From Actions you can:

  • Test the connection;
  • Rename it;
  • Edit allowlist, to limit which projects can choose it;
  • Delete it. Projects that use it keep their repository settings but stop syncing until a project admin chooses another connection.

To change which repositories the app can reach, go to the app’s settings in GitHub (Settings > GitHub Apps > AssertThat BDD > Configure). If the app is uninstalled or suspended in GitHub, the connection shows as Inactive.

Set up a project’s Git integration and choose the GitHub App connection.