Skip to content

Critical Severity missing from create_scan_report #158

Closed
@iucac

Description

@iucac

Recent upgrade to CX now adds the Critical severity for vulnerabilities, this extra level is not tracked by the API specifically when creating new scan reports with, CheckmarxPythonSDK.CxPortalSoapApiSDK namely create_scan_report().
When attempting to create a scan report (of any type) it will fail and return the following error:
Exception has occurred: ValidationError
Missing element Critical (CreateScanReport.Report.DisplayData.ResultsSeverity.Critical)
Inside the function call if fails to add the Critical severity to the results_severity variable in execute.

Image
An example of how the function was being invoked is below:
report = create_scan_report(scan_id=123456, report_type='CSV',results_per_vulnerability_all=True, results_per_vulnerability_maximum=500, general_options_executive_summary=True, results_assigned_to_all=True, results_severity_all=True, results_state_all=False, results_state_ids=[0,1,2,3,4,5], display_categories_all=True, display_categories_ids=None)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions