CostLensConnect GitHub

Connect GitHub

Connect a GitHub repository, with the CostLens GitHub App or a personal access token.

Updated November 20261 min read

No token to create or rotate.

  1. Go to Settings → Integrations → GitHub and click Install the GitHub App.
  2. GitHub asks which account and repositories to allow. Choose the organization, then Only select repositories or All repositories.
  3. You return to CostLens. Pick the repositories to connect and click Connect selected. Each becomes its own connection.

CostLens checks that you own the installation before attaching it, so an installation ID alone can never connect someone else's repositories.

To stop, use Disconnect on the installation in CostLens. That removes the connected repositories here; uninstall the App in GitHub (Settings → Applications) to revoke its access entirely. If the App is removed or suspended in GitHub, or a repository is removed from it, the matching connections pause automatically.

Option 2: personal access token

  1. Go to Settings → Integrations and click Connect on the GitHub card.
  2. Enter the repository as owner/repo.
  3. Paste a fine-grained personal access token scoped to that repository, then click Connect.

Permissions

PermissionWhy
Issues: writeOpen alert issues and comments
Contents: write, Pull requests: writeOnly needed for Infrastructure-as-Code Fixes
Commit statuses and Checks: writeCost estimate status on pull requests
Metadata: readAlways required

The GitHub App requests exactly these. For a token, Issues write is enough for alerts alone.

Test, edit and disconnect

  • Test is read-only and confirms access without creating anything.
  • Edit changes the repository or rotates the token.
  • Disconnect removes the connection and its stored token. It does not delete issues CostLens already created.

See Git Integration for what is delivered and how failures are handled.

CostLens
Previous
Overview
CostLens
Next
GitLab