> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squasher.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Source control connectors

> What each source control connector reads, and the read-only permissions to grant.

Each connector below reads events from the vendor and never writes to it. Grant only the
permissions in its list. The dashboard shows the same list under **Grant these permissions**
before you connect. To set up a connector, see [Connectors](https://docs.squasher.ai/integrations/connectors.md).

## Bitbucket Cloud audit log

* **Connector ID:** `bitbucket.audit_log`
* **Vendor:** [Bitbucket Cloud API docs](https://support.atlassian.com/bitbucket-cloud/kb/bitbucket-cloud-audit-log-in-atlassian-guard/)
* **Sign-in:** API key or token, sent in the `Authorization` header
* **Grant these permissions:**
  * `read:events:admin`
* **Params:** Atlassian organization id (`atlassian_org_id`)
* **Secrets:** Organization admin API key
* **Reads:** `GET https://api.atlassian.com/admin/v1/orgs/{atlassian_org_id}/events`
* **Events:** OCSF Account Change (3001), Authentication (3002), API Activity (6003)
* **Poll interval:** Every 15 minutes. The first pull reads back 7 days.

## GitHub organization audit log

* **Connector ID:** `github.audit_log`
* **Vendor:** [GitHub API docs](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/orgs#get-the-audit-log-for-an-organization)
* **Sign-in:** API key or token, sent in the `Authorization` header
* **Grant these permissions:**
  * Fine-grained token or GitHub App with the organization permission Administration: Read
  * Or a classic token with only read:audit\_log
  * Token user must be an organization owner (GitHub requires it for the audit log API, Enterprise Cloud)
* **Params:** Organization login (`github_org`)
* **Secrets:** Organization owner token
* **Reads:** `GET https://api.github.com/orgs/{github_org}/audit-log`
* **Events:** OCSF Account Change (3001), API Activity (6003)
* **Poll interval:** Every 5 minutes. The first pull reads back 7 days.

## GitLab group audit events

* **Connector ID:** `gitlab.audit_events`
* **Vendor:** [GitLab API docs](https://docs.gitlab.com/api/audit_events/#group-audit-events)
* **Sign-in:** API key or token, sent in the `PRIVATE-TOKEN` header
* **Grant these permissions:**
  * Personal or group access token with only the read\_api scope
  * Owner role on the top-level group (GitLab shows the events of all users only to Owners; Premium or Ultimate)
* **Params:** GitLab host (`gitlab_host`), Top-level group id (`gitlab_group_id`)
* **Secrets:** Group owner access token
* **Reads:** `GET https://{gitlab_host}/api/v4/groups/{gitlab_group_id}/audit_events`
* **Events:** OCSF Account Change (3001), API Activity (6003)
* **Poll interval:** Every 5 minutes. The first pull reads back 7 days.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.