Docs
relyance.ai ↗
Browse docs

CircleCI Pipelines

Updated October 13, 2025View as Markdown ↗

CircleCI-logo.svg CircleCI is a continuous integration and continuous delivery platform that can be used to implement DevOps practices. It helps development teams release code rapidly by automating build, test, and code deployments.

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 and connected to a CircleCI project.
  2. The relyance.yaml file needs to be in the source code root directory.
  3. Follow Set up SCI to create an OAuth credential and copy the Docker command from Step 2. Save the credential as API_KEY in your CircleCI project environment variables or a restricted context available to the scan job. 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.
Tip

See more info about the SCI commands here.

Steps:

  1. Login to your CircleCI account.
  2. Go to the project in question.
  3. Select the branch in question (master).
  4. If there is no config, setup the project and use the following yaml configuration:
version: 2.1
jobs:
  relyance:
    machine:
      image: ubuntu-2204:2026.10.1
    steps:
      - checkout
      - run: docker run --pull=always --rm --env API_KEY --volume "$PWD:/repo:ro" "$SCI_IMAGE"
workflows:
  version: 2
  example_workflow:
    jobs:
      - relyance

  daily-run-workflow:
    triggers:
      - schedule:
          cron: '0 12 * * *'
          filters:
            branches:
              only:
                - master
    jobs:
      - relyance

If you already have a CircleCI configuration, add the scan job and schedule to that file. 5. Once complete, click Save and Run. 6. Go to your Dashboard to see your pipeline progress. 7. 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"
The **Authentication** step asks for:
  • API Key: required; held as a secret.

Authentication methods and fields

Pick one of these under Authentication Method on the connection wizard's Authentication step. This table is generated from the integration catalog, so it always matches what the form actually asks for.

Method Required Optional
Custom API Key (secret) —

Manage this integration with Terraform

Connections for this integration can be managed as code with the Relyance Terraform provider. Non-secret fields go in auth.params; secret fields go in auth.secrets_wo, which is write-only — never stored in Terraform state. Rotate secrets by bumping auth.secrets_wo_version.

resource "relyance_integration_connection" "circleci" {
  vendor = "circleci"
  name   = "<your connection name>"

  auth = {
    method = "api-key"
    params = {
      data_storage_location = "us"
    }
    # Secret fields are write-only: sent to Relyance, never stored in state.
    secrets_wo = {
      api_key = var.circleci_api_key
    }
    secrets_wo_version = 1
  }

  scans = { "property-inspection" = { enabled = true } }
}