diff --git a/.github/workflows/update-cli.yml b/.github/workflows/update-cli.yml index 1b8017de..5c287328 100644 --- a/.github/workflows/update-cli.yml +++ b/.github/workflows/update-cli.yml @@ -70,4 +70,3 @@ jobs: [1]: https://github.com/Checkmarx/checkmarx-ast-cli labels: cxone branch: feature/update_cli_${{ steps.checkmarx-ast-cli.outputs.release_tag }} - diff --git a/checkmarx-ast-cli.version b/checkmarx-ast-cli.version index ad37abb2..d245ee86 100644 --- a/checkmarx-ast-cli.version +++ b/checkmarx-ast-cli.version @@ -1 +1 @@ -2.3.18 +2.3.19 diff --git a/src/main/wrapper/CxWrapper.ts b/src/main/wrapper/CxWrapper.ts index 0afa2f33..228554ea 100644 --- a/src/main/wrapper/CxWrapper.ts +++ b/src/main/wrapper/CxWrapper.ts @@ -229,9 +229,10 @@ export class CxWrapper { return exec.executeResultsCommandsFile(scanId, CxConstants.FORMAT_JSON, CxConstants.FORMAT_JSON_FILE, commands, this.config.pathToExecutable, fileName); } - async riskManagementResults(projectId: string, limit?: number): Promise { + async riskManagementResults(projectId: string, scanId: string, limit?: number): Promise { const commands: string[] = [CxConstants.CMD_RESULT, CxConstants.CMD_RISK_MANAGEMENT]; commands.push(CxConstants.PROJECT_ID, projectId); + commands.push(CxConstants.SCAN_ID, scanId); if (limit !== undefined) { commands.push(CxConstants.CMD_LIMIT, limit.toString()); diff --git a/src/main/wrapper/resources/cx-linux b/src/main/wrapper/resources/cx-linux index e535daa0..bde045cb 100755 --- a/src/main/wrapper/resources/cx-linux +++ b/src/main/wrapper/resources/cx-linux @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:551ccf5ebba15baf0f3e58ca4053f7bf7874313529fba299cbf5f451aafcb2f8 -size 73134232 +oid sha256:9eae11d84cb766a5df14ce5e9d57013268f3d687484cf2a4d67595c419a4a762 +size 73937080 diff --git a/src/main/wrapper/resources/cx-mac b/src/main/wrapper/resources/cx-mac index 9afda8ea..3b851457 100755 --- a/src/main/wrapper/resources/cx-mac +++ b/src/main/wrapper/resources/cx-mac @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3781358fff51f440295a97b27108a7e9a473a2b10254280487afc789bca62a47 -size 147989360 +oid sha256:68cb8baeb6eb68cff07440c2dd142b5a3cf53b2d12c4ca98dd01d0a95a4f9370 +size 148816000 diff --git a/src/main/wrapper/resources/cx.exe b/src/main/wrapper/resources/cx.exe index 676ed7e1..ab3efe27 100644 --- a/src/main/wrapper/resources/cx.exe +++ b/src/main/wrapper/resources/cx.exe @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:aa799496d86559052607dae544ec5a9556bcc4dbba3d4541bec3f704b32f0242 -size 75029888 +oid sha256:b073010a1e360028fcc2eee56d1a7376be36459a2ea1a27c0a516a227a334943 +size 75835264 diff --git a/src/tests/ResultTest.test.ts b/src/tests/ResultTest.test.ts index 4ec203f3..2aff2d12 100644 --- a/src/tests/ResultTest.test.ts +++ b/src/tests/ResultTest.test.ts @@ -70,9 +70,10 @@ describe("Results cases",() => { it("Risk Management - Successful case", async () => { const auth = new CxWrapper(cxScanConfig); const projectId = "a5d99fa4-973d-48b5-86c7-6401487e1d52" + const scanId = "068feb0f-cb8a-4f79-b9b1-e6bec009e517" const cxCommandOutput: CxCommandOutput = await auth.riskManagementResults( - projectId + projectId, scanId ); const str = JSON.stringify(cxCommandOutput); @@ -91,8 +92,11 @@ describe("Results cases",() => { it("Risk Management - With Limit", async () => { const auth = new CxWrapper(cxScanConfig); const projectId = "a5d99fa4-973d-48b5-86c7-6401487e1d52" + const scanId = "068feb0f-cb8a-4f79-b9b1-e6bec009e517" + const cxCommandOutput: CxCommandOutput = await auth.riskManagementResults( projectId, + scanId, 10 );