CloudBoosterDocs

What CloudBooster Guard can access on GitHub, and how to remove it

The CBX Guard GitHub App's permissions, what it writes to your repositories, what it never does, and how to remove the access.

What CloudBooster Guard can access on GitHub, and how to remove it

Guard connects to GitHub as a GitHub App you install, not as a person. This page lists the App's permissions, what Guard writes to your repositories, what it never does, and how to remove the access. To connect, see Connect a repository.

Who acts

The CBX Guard GitHub App acts, as cbx-guard[bot]. Everything it posts on a pull request shows that name, not a member's. There is no personal access token and no password. GitHub issues the App a token that expires after one hour for each review, so no long-lived credential exists on either side. The access lasts until you uninstall the App.

If you run GitHub Enterprise Server, you create the App on your own instance, under the organisation or user you name, and your instance issues its tokens. It asks for the same permissions as below.

What the App can access

It asks for these repository permissions, and no others:

PermissionAccessWhat Guard uses it for
ChecksRead and writePosts the cbxguard/review check-run (and cbxguard/ci-plan for a plan your CI uploads) and updates it as the review runs.
ContentsRead-onlyReads the changed Terraform and the repo config at the pull request's latest commit.
MetadataRead-onlyLists the repositories the install covers. GitHub grants it to every App.
Pull requestsRead and writeReads the pull request, and posts its one comment and the inline review comments.

It subscribes to the Pull request and Repository events. It requests no organisation or account permissions. Contents has no write permission, so the App cannot push code or change a branch.

Which repositories. The App reaches only the repositories you give it when you install it: All repositories, or the ones you select. Of those, Guard reviews only the repositories you choose to watch in the Console. You change which repositories the App reaches in GitHub: open the installation's Configure page (see below).

Your sign-in. When you install the App, GitHub also asks you to authorise it as a user, so Guard can confirm that you have access to the installation you link.

What Guard writes

On each pull request of a watched repository, and nowhere else:

  • a cbxguard/review check-run (and cbxguard/ci-plan when your CI uploads a plan);
  • one comment, edited in place;
  • inline review comments on changed lines.

What it never does

Guard's code never pushes commits, creates or changes branches, changes repository settings, members or branch protection, merges a pull request or touches a repository you did not watch. GitHub's permissions enforce part of this: the App has no write on contents. The rest is what Guard's code does.

How to remove it

ToDo this
Stop one repositoryIn the Console, open Repositories and unwatch it. Guard stops reviewing it, though the App still reaches it.
Remove the accessIn GitHub, open the installation: Settings → Applications for a personal account, or the organisation's Settings → GitHub Apps for an organisation. Choose Configure next to CBX Guard, then Uninstall. The App loses access when you uninstall it.
Forget the connection in GuardIn the Console, open Repositories and select Disconnect (an organisation admin or owner). Guard forgets the installation and cancels the reviews still queued.

Disconnect does not uninstall the App. Guard cannot uninstall its own App. After Disconnect, GitHub tokens that Guard already holds expire within an hour, but the App stays installed in GitHub until you uninstall it there. Do both for a full removal.

Connecting and disconnecting GitHub are recorded under Ledger → Activity with who did it and when.

On this page