Docs
relyance.ai ↗
Browse docs

Buildkite Pipelines

Updated October 13, 2025View as Markdown ↗

buildkite-logo-on-light-d2f7ffe9.png Buildkite Pipelines is a hosted, distributed continuous integration service used to build and test software projects.

This how-to will provide a basic understanding of how add the Relyance Source Code inspector (SCI) into a typical build job.

Prerequisites:

  1. A source code repository needs to be available in Buildkite.
  2. Ensure Docker is available on the Buildkite agent.
  3. The relyance.yaml file needs to be in the source code root directory.
  4. Follow Set up SCI to create an OAuth credential and copy the Docker command from Step 2. Use your Buildkite secret configuration to expose the credential as API_KEY in the scan step. For the examples on this page, set SCI_IMAGE in the scan environment to the full image reference shown at the end of that command.

Steps:

  1. Log in to Buildkite.
  2. Create a new pipeline / or select the pipeline you wish to add to. i. If creating a new pipeline, select the repository you would like to connect. ii. If adding to an existing pipeline, click Add> Run script or command.
  3. Paste the Step 2 command into the Commands to run box in the Steps section.
    Buildkite-2a.png
  4. Click Create pipeline/ Save Steps.
  5. Once ready, go to the pipeline and click the New Build button.
  6. If there are no errors, you should start to see SCI results in your Relyance tenant.

Appendix:

Run the command from the repository root with the scan job's API_KEY environment variable and the image from Step 2.

docker run --pull=always --rm --env API_KEY --volume "$PWD:/repo:ro" "$SCI_IMAGE"