From 17de01761f7f709ffbfb113c408d1ae836af206d Mon Sep 17 00:00:00 2001 From: cx-Margarita-LevitM Date: Wed, 15 Oct 2025 14:23:01 +0300 Subject: [PATCH 1/5] Fix test --- src/tests/LearnMoreDescriptions.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/LearnMoreDescriptions.test.ts b/src/tests/LearnMoreDescriptions.test.ts index 3118dbba..ae76c96f 100644 --- a/src/tests/LearnMoreDescriptions.test.ts +++ b/src/tests/LearnMoreDescriptions.test.ts @@ -14,7 +14,8 @@ describe("LearnMoreDescriptions cases",() => { it('LearnMoreDescriptions Failure case', async () => { const auth = new CxWrapper(cxScanConfig); - const data = await auth.learnMore("") + const queryId = ""; + const data = await auth.learnMore(queryId !== undefined? queryId : "") const cxCommandOutput: CxCommandOutput = data; expect(cxCommandOutput.status).toBe("Value of query-id is invalid\n"); }) From ed713f8f80b533c73054607c5fb418bf4b7a4264 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 15 Oct 2025 16:50:08 +0000 Subject: [PATCH 2/5] Track Checkmarx CLI binaries with Git LFS --- src/main/wrapper/resources/cx-linux | 4 ++-- src/main/wrapper/resources/cx-mac | 4 ++-- src/main/wrapper/resources/cx.exe | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/wrapper/resources/cx-linux b/src/main/wrapper/resources/cx-linux index 3f6d174b..b2bf1083 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:059e958eb6e2704f9e9ba7a51dd7efc086a85e53248000270d648944d5d6dae3 -size 80134328 +oid sha256:d8a163b3d50dc671973659d554b9032ee19f997f7a487471de0e594ed5039c8f +size 80904376 diff --git a/src/main/wrapper/resources/cx-mac b/src/main/wrapper/resources/cx-mac index 095113de..f5a32f12 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:5fce2cbfd8eeca6831fc270a7798e978bf3123b17244492ab1b183a9ad224392 -size 161292816 +oid sha256:243204210f2f9701cfac5878ba3bd13f1950fbc2cb2caec3b816155cc8269daf +size 162805056 diff --git a/src/main/wrapper/resources/cx.exe b/src/main/wrapper/resources/cx.exe index 6e1a7980..a2f87460 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:25369c32dab311dd3554791e60deb6a5a40812be226477476599f9bfee1afcd9 -size 82113472 +oid sha256:28d5ebfcb41c7e6705c89407ffefec5de2c08c14c1b0c8a9e1121f11eb15c77c +size 82922432 From 9266dd12f9668d317a85c488acd374bdcc4a736f Mon Sep 17 00:00:00 2001 From: cx-margarita-levitm <45617576+cx-margarita-levitm@users.noreply.github.com> Date: Wed, 15 Oct 2025 16:50:09 +0000 Subject: [PATCH 3/5] Update checkmarx-ast-cli to 2.3.37 --- checkmarx-ast-cli.version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkmarx-ast-cli.version b/checkmarx-ast-cli.version index f1e5f744..af6c3247 100644 --- a/checkmarx-ast-cli.version +++ b/checkmarx-ast-cli.version @@ -1 +1 @@ -2.3.36 +2.3.37 From 7bc5f9ff7c58ce955a7aae0d3ee886f7ef4e803e Mon Sep 17 00:00:00 2001 From: cx-Margarita-LevitM Date: Wed, 15 Oct 2025 20:12:39 +0300 Subject: [PATCH 4/5] Fix test --- src/tests/LearnMoreDescriptions.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tests/LearnMoreDescriptions.test.ts b/src/tests/LearnMoreDescriptions.test.ts index ae76c96f..c4bfd330 100644 --- a/src/tests/LearnMoreDescriptions.test.ts +++ b/src/tests/LearnMoreDescriptions.test.ts @@ -14,9 +14,8 @@ describe("LearnMoreDescriptions cases",() => { it('LearnMoreDescriptions Failure case', async () => { const auth = new CxWrapper(cxScanConfig); - const queryId = ""; - const data = await auth.learnMore(queryId !== undefined? queryId : "") + const data = await auth.learnMore("") const cxCommandOutput: CxCommandOutput = data; - expect(cxCommandOutput.status).toBe("Value of query-id is invalid\n"); + expect(cxCommandOutput.status).toBe("Value of query-id is invalid"); }) }) From ee5e41a9ca985116c86a330a850e5a9d83d50636 Mon Sep 17 00:00:00 2001 From: cx-Margarita-LevitM Date: Wed, 15 Oct 2025 20:49:08 +0300 Subject: [PATCH 5/5] Fix test --- src/main/wrapper/CxCommandOutput.ts | 1 + src/main/wrapper/ExecutionService.ts | 1 + src/tests/LearnMoreDescriptions.test.ts | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/wrapper/CxCommandOutput.ts b/src/main/wrapper/CxCommandOutput.ts index 94e8062d..633649a5 100644 --- a/src/main/wrapper/CxCommandOutput.ts +++ b/src/main/wrapper/CxCommandOutput.ts @@ -2,4 +2,5 @@ export class CxCommandOutput { exitCode: number; payload: any[]; status: string; + stderr: string; } \ No newline at end of file diff --git a/src/main/wrapper/ExecutionService.ts b/src/main/wrapper/ExecutionService.ts index 0df01366..ee2799b7 100644 --- a/src/main/wrapper/ExecutionService.ts +++ b/src/main/wrapper/ExecutionService.ts @@ -194,6 +194,7 @@ export class ExecutionService { cxCommandOutput.exitCode = code; if (stderr) { cxCommandOutput.status = stderr; + cxCommandOutput.stderr = stderr; } if (stdout) { const stdoutSplit = stdout.split('\n'); diff --git a/src/tests/LearnMoreDescriptions.test.ts b/src/tests/LearnMoreDescriptions.test.ts index c4bfd330..fbdb63ed 100644 --- a/src/tests/LearnMoreDescriptions.test.ts +++ b/src/tests/LearnMoreDescriptions.test.ts @@ -16,6 +16,6 @@ describe("LearnMoreDescriptions cases",() => { const auth = new CxWrapper(cxScanConfig); const data = await auth.learnMore("") const cxCommandOutput: CxCommandOutput = data; - expect(cxCommandOutput.status).toBe("Value of query-id is invalid"); + expect(cxCommandOutput.stderr).toBe("Value of query-id is invalid"); }) })