CostLensGit Integration

Git Integration

Connect GitHub, GitLab, Bitbucket Cloud or Azure DevOps so cost alerts land where your team already tracks infrastructure work.

Updated November 20262 min read

CostLens can deliver cost alerts, such as new high-priority recommendations, budget breaches and Auto-Fix approval requests, into a repository your team already uses, next to your Slack and Teams channels. Nobody has to check a separate dashboard for a finding to be seen.

Pick your provider

ProviderDelivers alertsOpens Terraform pull requestsSetup guide
GitHubIssue, or a comment on one tracking issueYesGitHub
GitLab (gitlab.com or self-hosted)Issue, or a commentYes (merge request)GitLab
Bitbucket CloudIssue, or a commentNoBitbucket
Azure DevOps ServicesWork ItemNoAzure DevOps

Not supported yet

Bitbucket Server / Data Center, Azure DevOps Server (on your own network) and Gitea are not supported. Running Terraform plans in your own CI is a separate feature, see Infrastructure-as-Code cost estimation.

What every provider has in common

  • Admin only. Only an organization admin can connect, edit, test or disconnect. Viewers, operators and FinOps users can see that a connection exists but never its token.
  • Your token is encrypted at rest and is never shown again after you save it. To change it, edit the connection and enter a new one.
  • Test is read-only. It checks that CostLens can reach the repository and has the access it needs, without creating an issue. A successful test shows Last verified.
  • Failures never block CostLens. If your provider rejects the token (revoked or expired), the connection is paused and marked Reconnect required. Analysis and Auto-Fix keep running; update the token to resume delivery.
  • Each connection is one repository. To send alerts to several repositories, connect each one.

What gets delivered

A connected repository receives the alert types you subscribe it to under Settings → Notifications, for example new critical or high recommendations, budget alerts and Auto-Fix approvals. Each delivery contains the finding, its estimated monthly savings and a link back to CostLens.

For an Auto-Fix approval request the issue also carries signed Approve and Reject links. Opening a link shows a confirmation page, and the fix is only approved or rejected when someone confirms there. Links expire after three days.

Alerts only, not a chat bot

Git destinations only receive messages. There is no bot that reads commands back from the repository, and closing an issue does not dismiss the recommendation in CostLens. Slack has slash commands, see Notifications.

CostLens
Previous
Notifications
CostLens
Next
GitHub