Checkmarx / ast-cli

A CLI project wrapping application security testing (AST) APIs
Apache License 2.0
41 stars 26 forks source link

CLI | Handle Export Service Bad Request (AST-42958, AST-64307) #832

Closed AlvoBen closed 2 months ago

AlvoBen commented 2 months ago

By submitting a PR to this repository, you agree to the terms within the Checkmarx Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.

Description

In some tenants we are getting bad request response when calling to export service initiating export report. This is caused of calling the export service to fast when the sca scan runner is still terminating. I added retry mechanism to handle this flow.

References

https://checkmarx.atlassian.net/browse/AST-42958 https://checkmarx.atlassian.net/browse/AST-64307

Testing

Added integration test that re-create this problem

Checklist

github-actions[bot] commented 2 months ago

Logo Checkmarx One – Scan Summary & Detailsdf89a331-50b0-44fc-964f-a02dbea0dc80

Policy Management Violations

Policy Name Rule(s) Break Build
[SAST-ML0] Not allowed NEW Sast vulnerabilities true

No New Or Fixed Issues Found