---
title: Buildkite
slug: docs/buildkite
description: Learn how to configure access to the GraphQL API of Buildkite. Discover the required scopes for the API access token and explore a YAML-based local configuration example. Uncover the extensive capabilities of the API, such
icon: {"faIcon":"fa-solid fa-arrows-spin"}
docTags: 
createdAt: 2024-04-17T16:33:10.803Z
---

# Buildkite

:::BlockQuote
**Edition:** Enterprise only
:::

The Buildkite integration scans build logs and artifacts for credentials and other sensitive data.

## Configuration

The Buildkite integration can be configured in TruffleHog under **Integrations**, or via a local configuration file (below).

### Web configuration

Configure this integration from the **Integrations** page in TruffleHog. You'll need a Buildkite API access token with **GraphQL API access enabled** and the following scopes:

- **Organization Access** — read access to your Buildkite organization.
- **Read Artifacts** — read access to build artifacts.
- **Read Builds** — read access to build metadata.
- **Read Build Logs** — read access to build log output.
- **Read Pipelines** — read access to pipeline configuration.

Tokens without GraphQL API access enabled will fail to authenticate even when the scopes are correct.

### Local configuration

:::BlockQuote
sources:
&#x20; \- connection:
&#x20;     "@type": type.googleapis.com/sources.Buildkite
&#x20;     \# Token must have GraphQL API access enabled.
&#x20;     \# Token requires Organization Access, Read Artifacts,
&#x20;     \# Read Builds, Read Build Logs, and Read Pipelines.
&#x20;     token: XXXXXXXXXXXXXXXXXXXXXXXXXX
&#x20;   name: Buildkite logs and artifacts
&#x20;   scanPeriod: 12h
&#x20;   type: SOURCE\_TYPE\_BUILDKITE
&#x20;   verify: true
:::

## Configuration options

| Field | Type   | Required | Description                                                                               |
| ----- | ------ | -------- | ----------------------------------------------------------------------------------------- |
| token | string | Yes      | A Buildkite API access token with GraphQL API access enabled and the scopes listed above. |

## Capabilities

| Feature                  | Supported |
| ------------------------ | --------- |
| Scan build logs          | ✅         |
| Scan archive files       | ✅         |
| Scan base64-encoded data | ✅         |
| Scan binaries            | ✅         |
| Auto-resume              | ✅         |

## Notes

- Objects larger than 10 MB are not scanned.
- Include and exclude filters are not supported. The scanner covers all builds, artifacts, and logs the token has access to.
