Azure DevOps fails to read -s parameter (AST-116875)#130
Merged
cx-anurag-dalke merged 5 commits intomainfrom Nov 27, 2025
Merged
Azure DevOps fails to read -s parameter (AST-116875)#130cx-anurag-dalke merged 5 commits intomainfrom
cx-anurag-dalke merged 5 commits intomainfrom
Conversation
Collaborator
|
Great job! No new security vulnerabilities introduced in this pull requestUse @Checkmarx to reach out to us for assistance. Just send a PR comment with Examples: |
352532a to
11aabcc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Test Cases
https://checkmarx.atlassian.net/browse/AST-116875
https://checkmarx.atlassian.net/browse/AST-115793
**Case 1 - -s,--scan-types command values in double quote **
additionalParams: -s "/home/vsts/work/_temp" --scan-types "container-security,sast,sca" --scan-timeout 120 --wait-delay 30 --tags buildId:1150233,pipelineName:wealth-ax-daily-scan,image:localhost/wealth/wealth-auth-service,imageTag:1150233 --container-images docker.io/nginx:latest --containers-local-resolution
Case 2 - -s,--scan-types command values in single quote
additionalParams: -s '/home/vsts/work/_temp' --scan-types 'container-security,sast,sca' --scan-timeout 120 --wait-delay 30 --tags buildId:1150233,pipelineName:wealth-ax-daily-scan,image:localhost/wealth/wealth-auth-service,imageTag:1150233 --container-images docker.io/nginx:latest --containers-local-resolution
Case 3 - -s,--scan-types command values without quote
additionalParams: -s /home/vsts/work/_temp --scan-types container-security,sast,sca --scan-timeout 120 --wait-delay 30 --tags buildId:1150233,pipelineName:wealth-ax-daily-scan,image:localhost/wealth/wealth-auth-service,imageTag:1150233 --container-images docker.io/nginx:latest --containers-local-resolution
**Case 4 - --scan-types,--sca-resolver,--sca-resolver-params command values in double quote **
additionalParams: --scan-types="sast,sca" --sca-resolver "/home/vsts/work/1/s/ScaResolver" --sca-resolver-params "--gradle-parameters='-Prepository.proxy.url=123 -Prepository.proxy.username=123 -Prepository.proxy.password=123' --log-level Debug"
**Case 5 ---scan-types,--sca-resolver command value in single quote and --sca-resolver-params in double quote **
additionalParams: --scan-types='sast,sca' --sca-resolver '/home/vsts/work/1/s/ScaResolver' --sca-resolver-params "--gradle-parameters='-Prepository.proxy.url=123 -Prepository.proxy.username=123 -Prepository.proxy.password=123' --log-level Debug"
** Case 6 ---scan-types,--sca-resolver command value without quote and --sca-resolver-params in double quote **
additionalParams: --scan-types=sast,sca --sca-resolver /home/vsts/work/1/s/ScaResolver --sca-resolver-params "--gradle-parameters='-Prepository.proxy.url=123 -Prepository.proxy.username=123 -Prepository.proxy.password=123' --log-level Debug"
** Case 7 ---scan-types,--sca-resolver command value without quote and --sca-resolver-params in double quote **
additionalParams: --scan-types=sast,sca --sca-resolver /home/vsts/work/1/s/ScaResolver --sca-resolver-params "--extract-archives zip --log-level debug"
Case 8 -
additionalParams: --scan-types sca --sca-resolver "/home/vsts/work/1/s/ScaResolver" --sca-resolver-params "--extract-depth 5 --extract-archives zip --ignore-dev-dependencies --ignore-test-dependencies" -s /home/vsts/work/_temp
Case 9- in single quote
additionalParams: --scan-types 'sast,api-security,sca,iac-security' --threshold 'sast-high=9999;sast-medium=9999;sast-low=9999;api-security-high=200;api-security-medium=9999;api-security-low=9999;sca-high=9999;sca-medium=9999;sca-low=9999;iac-security-high=1;iac-security-medium=9999;iac-security-low=9999' --sca-resolver "/home/vsts/work/1/s/ScaResolver" --sca-resolver-params "--extract-depth 5 --extract-archives zip --ignore-dev-dependencies --ignore-test-dependencies" -s /home/vsts/work/_temp --sast-filter '!/test/' --sca-filter '!Dockerfile,!dockerfile,!Containerfile,!containerfile,!docker-compose.y*,!/test/' --iac-security-filter '!.gitignore,!/test/,!/tests/,!/Test/,!/Tests/,!.test,!.tests,!.Test,!.Tests' --iac-security-platforms 'Ansible,AzureResourceManager,Buildah,CICD,CloudFormation,Crossplane,DockerCompose,Dockerfile,GRPC,GoogleDeploymentManager,Knative,Kubernetes,OpenAPI,Pulumi,ServerLessFW,Terraform' --scan-timeout 120 --wait-delay 30 --tags buildId:508415,pipelineName:Daily-Scan-of-appsec-service-templates,PluginVersion:3,--debug
**Case 10 in double quote **
additionalParams: --scan-types "sast,api-security,sca,iac-security" --threshold "sast-high=9999;sast-medium=9999;sast-low=9999;api-security-high=200;api-security-medium=9999;api-security-low=9999;sca-high=9999;sca-medium=9999;sca-low=9999;iac-security-high=1;iac-security-medium=9999;iac-security-low=9999" --sca-resolver "/home/vsts/work/1/s/ScaResolver" --sca-resolver-params "--extract-depth 5 --extract-archives zip --ignore-dev-dependencies --ignore-test-dependencies" -s /home/vsts/work/_temp --sast-filter "!/test/" --sca-filter "!Dockerfile,!dockerfile,!Containerfile,!containerfile,!docker-compose.y*,!/test/" --iac-security-filter "!.gitignore,!/test/,!/tests/,!/Test/,!/Tests/,!.test,!.tests,!.Test,!.Tests" --iac-security-platforms "Ansible,AzureResourceManager,Buildah,CICD,CloudFormation,Crossplane,DockerCompose,Dockerfile,GRPC,GoogleDeploymentManager,Knative,Kubernetes,OpenAPI,Pulumi,ServerLessFW,Terraform" --scan-timeout 120 --wait-delay 30 --tags buildId:508415,pipelineName:Daily-Scan-of-appsec-service-templates,PluginVersion:3,--debug
Case 11- without quote
additionalParams: --scan-types sast,api-security,sca,iac-security --threshold sast-high=9999;sast-medium=9999;sast-low=9999;api-security-high=200;api-security-medium=9999;api-security-low=9999;sca-high=9999;sca-medium=9999;sca-low=9999;iac-security-high=1;iac-security-medium=9999;iac-security-low=9999 --sca-resolver /home/vsts/work/1/s/ScaResolver --sca-resolver-params "--extract-depth 5 --extract-archives zip --ignore-dev-dependencies --ignore-test-dependencies" -s /home/vsts/work/_temp --sast-filter "!/test/" --sca-filter "!Dockerfile,!dockerfile,!Containerfile,!containerfile,!docker-compose.y*,!/test/" --iac-security-filter "!.gitignore,!/test/,!/tests/,!/Test/,!/Tests/,!.test,!.tests,!.Test,!.Tests" --iac-security-platforms Ansible,AzureResourceManager,Buildah,CICD,CloudFormation,Crossplane,DockerCompose,Dockerfile,GRPC,GoogleDeploymentManager,Knative,Kubernetes,OpenAPI,Pulumi,ServerLessFW,Terraform --scan-timeout 120 --wait-delay 30 --tags buildId:508415,pipelineName:Daily-Scan-of-appsec-service-templates,PluginVersion:3,--debug