Buildkite Pipelines
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:
- A source code repository needs to be available in Buildkite.
- Ensure Docker is available on the Buildkite agent.
- 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. Use your Buildkite secret configuration to expose the credential as
API_KEYin the scan step. For the examples on this page, setSCI_IMAGEin the scan environment to the full image reference shown at the end of that command.
Steps:
- Log in to Buildkite.
- 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.
- Paste the Step 2 command into the Commands to run box in the Steps section.

- Click Create pipeline/ Save Steps.
- Once ready, go to the pipeline and click the New Build button.
- 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"