> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/sast-and-sca/prezero/static-analysis-sast/workflows/bamboo.md).

# Bamboo

This article shows you how to integrate Qwiet AI by Harness into your Bamboo workflow to provide automated code analysis.

## Prerequisites <a href="#prerequisites" id="prerequisites"></a>

This tutorial assumes that you have:

* [Installed Bamboo](https://confluence.atlassian.com/bamboo/bamboo-installation-guide-289276785.html)
* [Set up Qwiet AI by Harness](broken://spaces/uPVBkglG6gsk2SsnsKgG/pages/fDfomI4jhzwCNFxmGSLc) onto your Bamboo server

## Step 1: Create your environment variables <a href="#step-1-create-your-environment-variables" id="step-1-create-your-environment-variables"></a>

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

Create the following environment variables containing authentication information for Qwiet:

| **Variable**             | **Value**         |
| ------------------------ | ----------------- |
| `SHIFTLEFT_ACCESS_TOKEN` | Your Access Token |

When running in a production environment, we recommend using a CI token as the access token. You can [create your CI token](/sast-and-sca/prezero/integrations/tokens.md) in the Qwiet Dashboard.

Please note that the presence of any set environment variables will override those in a configuration file.

## Step 2: Create a script to run Qwiet AI by Harness <a href="#step-2-create-a-script-to-run-qwiet-ai-by-harness" id="step-2-create-a-script-to-run-qwiet-ai-by-harness"></a>

Provide Bamboo instructions on running Qwiet AI by Harness by [creating a shell script](https://confluence.atlassian.com/bamboo/script-289277046.html) containing task running information.

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

| **Parameter**         | **Value**                                                         |
| --------------------- | ----------------------------------------------------------------- |
| 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>`                     |

Ensure that the script called to run Qwiet AI by Harness is the last build task listed since it should run after all of your other Bamboo tasks.
