Checkmarx / ast-azure-plugin

The CxAST Azure DevOps plugin enables you to trigger SAST, SCA, and KICS scans directly from an Azure DevOps pipeline.
https://marketplace.visualstudio.com/items?itemName=checkmarx.checkmarx-ast-azure-plugin
Apache License 2.0
4 stars 2 forks source link

Issue with Scan Type Validation in Checkmarx Plugin #579

Open john24rel opened 1 month ago

john24rel commented 1 month ago

The Checkmarx plugin version 2.0.38 has an issue with validating the --scan-types parameter as per the documentation. When using the argument --scan-types sast, sca in the pipeline, the plugin incorrectly parses the parameters, adding extra commas between the scan types.

Steps to Reproduce: Configure a pipeline with the following additional parameters: --scan-types sast, sca.

Run the pipeline. Observed Behavior: The pipeline logs show additional commas in the parsed parameters: Additional parameters refined: --scan-types, sast,sca

Expected Behavior: The plugin should correctly parse the parameters without adding extra commas.

Documentation Reference: The documentation states that the argument --scan-types should accept values like sast, sca, iac-security, or api-security. For more details, see the official documentation here