diff --git a/checkmarx-ast-cli.version b/checkmarx-ast-cli.version index 53c4a94..175f377 100644 --- a/checkmarx-ast-cli.version +++ b/checkmarx-ast-cli.version @@ -1 +1 @@ -2.3.67 +2.3.69 diff --git a/package-lock.json b/package-lock.json index e9e5e0a..a79096c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@Checkmarx/ast-cli-javascript-wrapper", - "version": "0.0.165", + "version": "0.0.166", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@Checkmarx/ast-cli-javascript-wrapper", - "version": "0.0.165", + "version": "0.0.166", "license": "ISC", "dependencies": { "log4js": "^6.9.1" diff --git a/package.json b/package.json index 8da0ec5..9e22360 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@Checkmarx/ast-cli-javascript-wrapper", - "version": "0.0.165", + "version": "0.0.166", "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 d35fd83..7918c1c 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:058824c82df0d27b81a57f93c20662dd714fe154a1b78e5846a5249e6378b1e9 -size 84254882 +oid sha256:c6fd4c467e392b4f40fae7bf86f8c2bc57b34a42a73a8357dfa5046160bb3e12 +size 84349090 diff --git a/src/main/wrapper/resources/cx-mac b/src/main/wrapper/resources/cx-mac index 36e8f9e..ead383e 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:2b1b547377e32341492d95711c03ce98af1aa45cac26b103327819f1b63148c8 -size 167105648 +oid sha256:a4ab739536ff4d68ce9fd01a12dff0e17b74fd812464c19dd6e93b0da466c2ac +size 167291936 diff --git a/src/main/wrapper/resources/cx.exe b/src/main/wrapper/resources/cx.exe index c7d902b..5b1e649 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:d8a790c88c52c7d5a31f4ba8894eb54f9e3a0c0caa7b8cd601ea6ec593195874 -size 85909312 +oid sha256:a70b25f17eef87ffb5f0ffe0c1a4ac1c3f0bc873cbc9293e49ab7ce9a4d673d5 +size 86010688 diff --git a/src/tests/PredicateTest.test.ts b/src/tests/PredicateTest.test.ts index b6e182e..5e86624 100644 --- a/src/tests/PredicateTest.test.ts +++ b/src/tests/PredicateTest.test.ts @@ -67,13 +67,14 @@ describe("Triage cases", () => { }; it('SCA Triage Show and Update Successful case', async () => { - const projectId = "d4d7f382-8dee-48c7-ac8f-67fab2c313a8"; - const vulnerabilities = "packagename=Maven-org.apache.tomcat.embed:tomcat-embed-core,packageversion=9.0.14,vulnerabilityId=CVE-2024-56337,packagemanager=maven"; + const projectId = "3c6569c8-020f-43c0-b7d5-b0543cceaa25"; + const vulnerabilities = "packagename=Npm-tar-fs,packageversion=2.1.1,vulnerabilityId=CVE-2024-12905,packagemanager=npm"; const scanType = "sca"; const state = "To_verify"; const comment = "comment1"; - await handleTriageSCAShow(projectId, vulnerabilities, scanType); + // Update first: the show endpoint returns 404 until a triage record exists for the finding await handleTriageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); + await handleTriageSCAShow(projectId, vulnerabilities, scanType); }); it('SCA Triage Show and Update Failure case', async () => { @@ -91,7 +92,7 @@ describe("Triage cases", () => { }); it('SCA Triage Show and Update with empty vulnerabilities', async () => { - const projectId = "d4d7f382-8dee-48c7-ac8f-67fab2c313a8"; + const projectId = "3c6569c8-020f-43c0-b7d5-b0543cceaa25"; const vulnerabilities = ""; const scanType = "sca"; const state = "To_verify";