Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion checkmarx-ast-cli.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.67
2.3.69
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/main/wrapper/resources/cx-linux
Git LFS file not shown
4 changes: 2 additions & 2 deletions src/main/wrapper/resources/cx-mac
Git LFS file not shown
4 changes: 2 additions & 2 deletions src/main/wrapper/resources/cx.exe
Git LFS file not shown
9 changes: 5 additions & 4 deletions src/tests/PredicateTest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand All @@ -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";
Expand Down
Loading