SonarQube Integration with DefectDojo
SonarQube is a comprehensive static application security testing (SAST) and code quality platform that performs continuous automated code review across 35+ programming languages to detect bugs, security vulnerabilities, code smells, and technical debt by analyzing source code with over 6,500 rules including industry-leading taint analysis for security issues such as SQL injection, cross-site scripting, and weak cryptography. The platform integrates seamlessly into IDEs through SonarQube for IDE and CI/CD pipelines including Jenkins, GitHub, GitLab, and Azure DevOps to enforce customizable quality gates, provide AI-powered code fixes, detect secrets, scan infrastructure as code, perform software composition analysis (SCA) with SBOM generation, and deliver compliance reporting aligned with regulatory standards throughout the software development lifecycle.
Data Granularity: What Gets Imported
The following fields are captured from SonarQube 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": "SonarQube",
"engagement": "<engagement-id>",
"file": "results.json"
}