import_scan
Import scan reports into DefectDojo to centralize findings, deduplicate issues, and track remediation across products.
Instructions
Import a scan report into DefectDojo.
Either engagement_id OR (product_name + auto_create_context=True) must be provided. Either file_path (local file) or scan_data (raw content) must be provided.
Args: scan_type: Scanner type (e.g., "ZAP Scan", "Nessus Scan", "SARIF", "Trivy Scan", etc.) file_path: Path to the scan results file on the local filesystem scan_data: Raw scan data as string (alternative to file_path) engagement_id: Target engagement ID product_name: Product name (for auto-create context) product_type_name: Product type name (for auto-create context) engagement_name: Engagement name (for auto-create context) test_title: Custom test title auto_create_context: Auto-create product/engagement if they don't exist active: Mark findings as active verified: Mark findings as verified close_old_findings: Close findings not present in new scan close_old_findings_product_scope: Close at product scope push_to_jira: Push findings to JIRA minimum_severity: Minimum severity to import (Info, Low, Medium, High, Critical) deduplication_on_engagement: Deduplicate within engagement environment: Environment name version: Version being scanned build_id: Build ID branch_tag: Branch or tag commit_hash: Commit hash service: Service name group_by: Group findings by (component_name, component_name+component_version, file_path) tags: Tags to apply
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| active | No | ||
| service | No | ||
| version | No | ||
| build_id | No | ||
| group_by | No | ||
| verified | No | ||
| file_path | No | ||
| scan_data | No | ||
| scan_type | Yes | ||
| branch_tag | No | ||
| test_title | No | ||
| commit_hash | No | ||
| environment | No | ||
| product_name | No | ||
| push_to_jira | No | ||
| engagement_id | No | ||
| engagement_name | No | ||
| minimum_severity | No | Info | |
| product_type_name | No | ||
| close_old_findings | No | ||
| auto_create_context | No | ||
| deduplication_on_engagement | No | ||
| close_old_findings_product_scope | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||