Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Critical Severity missing from create_scan_report #158

Open
iucac opened this issue Mar 3, 2025 · 0 comments
Open

Critical Severity missing from create_scan_report #158

iucac opened this issue Mar 3, 2025 · 0 comments

Comments

@iucac
Copy link

iucac commented Mar 3, 2025

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant