CodeQL Integration with DefectDojo
CodeQL is a semantic code analysis engine developed by GitHub that enables developers and security researchers to query source code as data to discover vulnerabilities, perform variant analysis, and automate security checks across codebases. CodeQL supports multiple programming languages and frameworks, allowing organizations to write custom queries to identify security flaws, eradicate vulnerability variants, and integrate automated static application security testing (SAST) into continuous integration and deployment workflows.
Data Granularity: What Gets Imported
The following fields are captured from CodeQL 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": "CodeQL",
"engagement": "<engagement-id>",
"file": "results.json"
}