checkmarx-ltd / Cx-Client-Common

3 stars 12 forks source link

October23 integration #229

Closed Khant1000 closed 11 months ago

Khant1000 commented 11 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.

AvoidDuplicateProjectScans parameter : JIRA_PLUG_1159 Sample command: runCxConsole.cmd Scan -v -ProjectName "CxServer/dupProjTest2" -TrustedCertificates -CxServer https://sast94.cxquality.com/ -cxuser admin@cx -cxpassword Cx123456! -LocationType folder -LocationPath "C:\CLIPlugin\GitRepo\JavaVulnerableLabE" -preset "Checkmarx Default" -AvoidDuplicateProjectScans Expected behavior : when this parameter is used and a sast scan is run simultaneously on two cmd, using same project name, one of the scans should happen successfully, on the other prompt it should throw the error : CLI process terminated, error: com.cx.restclient.exception.CxClientException: Avoid duplicate project scans in queue. avoidDuplicateProjectScans : true in cx.config Sample command: runCxConsole.cmd Scan -ProjectName "CxServer/SP/Checkmarx/ConfigAsCodeDupScan1.5" -CxServer https://sast94.cxquality.com/ -cxuser admin@cx -cxpassword Cx123456! -LocationType folder -LocationPath "C:\CLIPlugin\GitRepo\JavaVulnerableLabE" -preset "Checkmarx Default" -configascode Expected Behivior : Similar to 1. when the flag is set to false, both the scans should happen successfully.

Fixed vulnerabilities.

CxSCA

PLUG-1395 [CLI] Salesforce | 00180205 | In 9.6 ScanWithSettings V5 is not accepting a zip file if it's a GIT, SVN, TFS or a Perforce project - Jira (atlassian.net) . should be able to perform scan with 9.6 server without hotfix.

Description

Describe the purpose of this PR along with any background information and the impacts of the proposed change.

References

Include supporting link to GitHub Issue/PR number

Testing

Describe how this change was tested. Be specific about anything not tested and reasons why. If this solution has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

Please include any manual steps for testing end-to-end or functionality not covered by unit/integration tests.

Checklist