This article shows you how you can integrate Inspect into your Bamboo workflow to provide automated code analysis.


This tutorial assumes that you have:

Step 1: Create Your Environment Variables

Log into your Bamboo server using an account that has administrator privileges.

Create the following environment variables containing authentication information for ShiftLeft:

Environment Variable



Your Organization ID


Your Access Token

You can find your Organization ID and Access Token in the ShiftLeft Dashboard under Account Settings.

Step 2: Create a Script to Run Inspect

Provide Bamboo instructions on running Inspect by creating a shell script that contains task running information.

You will be asked to provide values for the following parameters when creating the script:



Task description

SL Analyze (or similar)

Script body

/usr/local/bin/sl analyze or /usr/local/bin/sl analyze - -cpg

Working sub directory

<path to where your build project packages>

Make sure that the script called to run Inspect is the last build task listed since it should run after all of your other Bamboo tasks.