CircleCI Pipelines
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:
- A source code repository needs to be available and connected to a CircleCI project.
- The
relyance.yamlfile needs to be in the source code root directory. - Follow Set up SCI to create an OAuth credential and copy the Docker command from Step 2. Save the credential as
API_KEYin your CircleCI project environment variables or a restricted context available to the scan job. For the examples on this page, setSCI_IMAGEin the scan environment to the full image reference shown at the end of that command.
See more info about the SCI commands here.
Steps:
- Login to your CircleCI account.
- Go to the project in question.
- Select the branch in question (master).
- 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:
- relyanceIf 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 } }
}