From 60de4a879938e5009c4bcab81f06eccd7753f81d Mon Sep 17 00:00:00 2001 From: atishj99 Date: Fri, 18 Sep 2026 12:45:05 +0530 Subject: [PATCH 1/2] Bump AST CLI to v2.3.65 and package to 0.0.163 Upgrade bundled AST CLI to 2.3.65 by updating checkmarx-ast-cli.version and replacing platform binaries (cx.exe, cx-mac, cx-linux) via Git LFS (new OIDs). Also bump package.json and package-lock.json version to 0.0.163 to reflect the new CLI bundle. --- checkmarx-ast-cli.version | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/main/wrapper/resources/cx-linux | 4 ++-- src/main/wrapper/resources/cx-mac | 4 ++-- src/main/wrapper/resources/cx.exe | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/checkmarx-ast-cli.version b/checkmarx-ast-cli.version index 678d59d..489612f 100644 --- a/checkmarx-ast-cli.version +++ b/checkmarx-ast-cli.version @@ -1 +1 @@ -2.3.60 +2.3.65 diff --git a/package-lock.json b/package-lock.json index 3fc3ef4..7a06961 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@Checkmarx/ast-cli-javascript-wrapper", - "version": "0.0.162", + "version": "0.0.163", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@Checkmarx/ast-cli-javascript-wrapper", - "version": "0.0.162", + "version": "0.0.163", "license": "ISC", "dependencies": { "log4js": "^6.9.1" diff --git a/package.json b/package.json index faafb37..f8494fe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@Checkmarx/ast-cli-javascript-wrapper", - "version": "0.0.162", + "version": "0.0.163", "description": "AST CLI Javascript wrapper", "main": "dist/main/wrapper/CxWrapper.js", "typings": "dist/main/wrapper/CxWrapper.d.ts", diff --git a/src/main/wrapper/resources/cx-linux b/src/main/wrapper/resources/cx-linux index e2eed16..2791305 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:0e9b89a768a10638c5cb75a260df48cf575f532e171841a8a9afbf0fd5af16c0 -size 83382434 +oid sha256:a7378b72f407b92015606b376b5f63efe510db5d4406325acba5137d4d88320b +size 83923106 diff --git a/src/main/wrapper/resources/cx-mac b/src/main/wrapper/resources/cx-mac index bea9731..3f85b2e 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:f784d6d250bb4e1e3316621f8a10df105dcd3b0dc40018e15189015130e50a88 -size 166065872 +oid sha256:b5c3520fa33e004b5a0e4be9659d87527f27d2cef949e139ad1be3e794d1bc2a +size 166448320 diff --git a/src/main/wrapper/resources/cx.exe b/src/main/wrapper/resources/cx.exe index 8a18f0b..35b84d0 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:c00b197f25ff482df245554959def129cd257f1fe7abde6f2ee2357268c75bcc -size 85366592 +oid sha256:b289d0e3a0153ee22f4817c4b154d23a9341cd5260c0a34cf6523fe60cdc8de6 +size 85578048 From 649c41c4122efc194310991ff21ffb8ec662ce4d Mon Sep 17 00:00:00 2001 From: atishj99 Date: Fri, 18 Sep 2026 16:18:47 +0530 Subject: [PATCH 2/2] Fix predicate test fallback for missing scan The predicate test assumed a scan was already available in the test environment. When no scan was present, it would fail before running the assertions. This change adds a fallback path to fetch a known scan and its result list, ensuring the test remains stable even when the environment starts empty. --- src/tests/PredicateTest.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tests/PredicateTest.test.ts b/src/tests/PredicateTest.test.ts index a9e977d..b6e182e 100644 --- a/src/tests/PredicateTest.test.ts +++ b/src/tests/PredicateTest.test.ts @@ -23,6 +23,12 @@ describe("Triage cases", () => { } } } + if (!scan) { + const scanShow = await auth.scanShow("d4354650-4ee1-4e10-9b1d-0feaf6c187a7"); + scan = scanShow?.payload?.pop(); + output = await auth.getResultsList(scan.id); + result = output?.payload?.find(res => res.type === CxConstants.SAST); + } return { scan, result }; };