---
updatedAt: 2026-04-09T11:17:01.000Z
agentTools:
  projectIndex: https://docs.kondukto.io/llms.txt
---

# Nancy SCA

Invicti ASPM supports **Nancy** as an SCA (Software Composition Analysis) scanner. This guide explains how to activate and use the Nancy integration.

Nancy is a tool for checking Go dependencies for known vulnerabilities. It uses the Sonatype OSS Index to identify vulnerable components in Golang projects, making it a specialized SCA tool for Go-based applications.

## Prerequisites

Before starting the integration, ensure you have the following:

| Requirement        | Description                                                                      |
| ------------------ | -------------------------------------------------------------------------------- |
| Docker             | Docker installed and running in your CI/CD environment                           |
| Nancy Docker image | The Nancy Docker image for running scans                                         |
| KDT CLI            | Access to the Kondukto CLI tool (KDT) for triggering scans and importing results |
| Golang project     | A Go project with a `go.sum` file for dependency analysis                        |

> **Note:** Nancy runs inside a **Docker container** and does not use a traditional Test Connection flow. Instead, configuration is done through the Docker activation dialog.

### Supported Languages

Nancy exclusively supports **Golang** projects. It analyzes `go.sum` files to identify vulnerable dependencies.

## Step 1: Navigate to Integrations

From the left sidebar menu, click on **Integrations**.

## Step 2: Select the SCA Tab

On the Integrations page, you will see the **Scanners** section with multiple tabs. Click on the **SCA** tab.

<Image align="center" border={true} src="https://files.readme.io/9af9f1db36bb99bd460d2ca82598fdb4b86c227d0f0026441e2885d4a61e40ba-sca-tab_1.png" className="border" />

## Step 3: Find and Activate Nancy

Scroll through the list of SCA scanners to find **Nancy**.

* If Nancy is **not activated**, you will see an **"Activate"** button. Click it to enable the integration. An activation dialog will appear where you can configure the Docker settings.
* If Nancy is **already activated**, you will see a toggle switch in the ON position and a **"Deactivate"** button, along with a gear icon for configuration.

  > **Note:** The scan method badge on the Nancy card shows **KDT**, which means scans are triggered through the Kondukto CLI tool (KDT).

## Step 4: Configure Docker Settings

Click on the **gear icon** on the Nancy card to open the configuration panel. Fill in the following fields:

| Field               | Description                                                                          | Required |
| ------------------- | ------------------------------------------------------------------------------------ | -------- |
| Scanner Image       | The Docker image to use for Nancy scans                                              | Yes      |
| Use Cache           | Enable caching to speed up subsequent scans by reusing downloaded vulnerability data | No       |
| Docker Images       | Additional Docker image versions available for scanning                              | No       |
| OSS Auth - Username | Username for authenticating with the Sonatype OSS Index (for higher rate limits)     | No       |
| OSS Auth - Password | Password/token for authenticating with the Sonatype OSS Index                        | No       |

<Image align="center" border={true} src="https://files.readme.io/97888fbaef4eee64a8b304d427db21ac0dde6a411b7f31e5d9c23cb117dc50f4-nancy-settings.png" className="border" />

### OSS Index Authentication

By default, Nancy uses the Sonatype OSS Index with anonymous access, which has rate limits. To increase rate limits, you can register for a free OSS Index account:

1. Visit [Sonatype OSS Index](https://ossindex.sonatype.org/)  and create an account.
2. Use your registered email as the **Username**.
3. Use your API token as the **Password**.

## Step 5: Trigger Scans via KDT CLI

Use the Kondukto CLI tool to trigger Nancy scans:

```bash
kdt scan -p <project-name> -t nancy -b <branch>
```

## Step 6: Verify Scan Results

After the scan completes, verify that the results appear correctly:

* Check the **Scans** page for the newly completed scan.
* Review the **Vulnerabilities** tab to confirm findings were imported successfully.
* Verify severity levels and vulnerability details are accurate.

## CI/CD Pipeline Example

Here is an example of integrating Nancy with the KDT CLI in a CI/CD pipeline:

```yaml
# Example: GitLab CI/CD
nancy_scan:
  stage: security
  image: golang:latest
  script:
    - kdt scan -p my-go-project -t nancy -b $CI_COMMIT_BRANCH
```

## Summary

| Step | Action                                                                                                 |
| ---- | ------------------------------------------------------------------------------------------------------ |
| 1    | Navigate to **Integrations** from the sidebar                                                          |
| 2    | Select the **SCA** tab under Scanners                                                                  |
| 3    | Find **Nancy** and click **Activate** (if not already active)                                          |
| 4    | Configure **Scanner Image**, **Use Cache**, **Docker Images**, and optionally **OSS Auth** credentials |
| 5    | Trigger scans via the **KDT CLI**                                                                      |
| 6    | Verify scan results in the project's Scans and Vulnerabilities sections                                |