reimport_scan
Update an existing DefectDojo test by reimporting new scan results, with options to close old findings and match tests by ID or product context.
Instructions
Reimport a scan report (update existing test with new results).
Either test_id OR (product_name + test_title + auto_create_context) must be provided. Either file_path or scan_data must be provided.
Args: scan_type: Scanner type (e.g., "ZAP Scan", "Nessus Scan", "SARIF", etc.) test_id: Existing test ID to reimport into file_path: Path to the scan results file scan_data: Raw scan data as string 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: Test title (for matching existing test) auto_create_context: Auto-create context if it doesn't exist active: Mark findings as active verified: Mark findings as verified close_old_findings: Close findings not in new scan (default True) close_old_findings_product_scope: Close at product scope push_to_jira: Push to JIRA minimum_severity: Minimum severity do_not_reactivate: Don't reactivate closed findings 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 field tags: Tags to apply
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| active | No | ||
| service | No | ||
| test_id | 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_name | No | ||
| minimum_severity | No | Info | |
| do_not_reactivate | No | ||
| product_type_name | No | ||
| close_old_findings | No | ||
| auto_create_context | No | ||
| close_old_findings_product_scope | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||