Nancy Integration with DefectDojo
Nancy is an open-source vulnerability scanning tool designed specifically for Golang projects that analyzes Go dependencies by scanning Gopkg.lock files or go.sum files and cross-referencing them against Sonatype OSS Index to identify known security vulnerabilities in both direct and transitive dependencies. The tool integrates seamlessly into CI/CD pipelines through simple command-line usage with support for vulnerability exclusions, caching to avoid rate limiting, and exit codes that fail builds when vulnerabilities are detected, enabling Go developers to proactively identify and remediate security risks throughout the development lifecycle.
Data Granularity: What Gets Imported
The following fields are captured from Nancy results and surfaced in DefectDojo findings:
| Field | Source | Notes |
|---|---|---|
| Title | Finding name from the scan | Matched to the tool's own naming |
| Severity | Critical / High / Medium / Low / Info | Mapped from the tool's own severity scale |
| Description | Finding detail from the report | Includes what the issue is and why it matters |
| Mitigation | Remediation guidance | Where the tool provides it |
Importing Into DefectDojo
Use the DefectDojo import API to create a new Test under the relevant Engagement for your product. The request body:
{
"scan_type": "Nancy",
"engagement": "<engagement-id>",
"file": "results.json"
}