Skip to content

Commit 4954504

Browse files
Update checkmarx-ast-cli binaries with 2.0.66 (#576)
* Update checkmarx-ast-cli to 2.0.66 * Update .eslintignore * update dependencies * update dependencies * update dependencies
1 parent a285ef0 commit 4954504

File tree

9 files changed

+460
-726
lines changed

9 files changed

+460
-726
lines changed

.eslintignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
node_modules
2-
dist
3-
tmp
4-
coverage
5-
.github
1+
/**/node_modules/*
2+
node_modules/
3+
dist/
4+
tmp/
5+
coverage/
6+
.github/

checkmarx-ast-cli.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.65
1+
2.0.66

package-lock.json

Lines changed: 446 additions & 711 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"devDependencies": {
2929
"@types/jest": "^27.5.0",
3030
"@types/node": "^20.11.16",
31-
"@typescript-eslint/eslint-plugin": "^6.20.0",
32-
"@typescript-eslint/parser": "^5.62.0",
31+
"@typescript-eslint/eslint-plugin": "5.0.0",
32+
"@typescript-eslint/parser": "5.0.0",
3333
"copyfiles": "^2.4.1",
34-
"eslint": "^8.56.0",
34+
"eslint": "8.1.0",
3535
"jest": "^26.6.3",
3636
"jest-cli": "29.7.0",
3737
"ts-jest": "^26.0.0",

src/main/wrapper/CxConstants.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export enum CxConstants {
1717
BASE_AUTH_URI = "--base-auth-uri",
1818
CMD_UTILS = "utils",
1919
CMD_REMEDIATION = "remediation",
20-
SUB_CMD_REMEDIATION_KICS = "kics",
2120
SUB_CMD_REMEDIATION_SCA = "sca",
2221
SUB_CMD_TENANT = "tenant",
2322
KICS_REMEDIATION_RESULTS_FILE = "--results-file",
@@ -44,7 +43,7 @@ export enum CxConstants {
4443
CMD_SCA_REALTIME = "sca-realtime",
4544
CMD_SCA_REALTIME_PROJECT_DIR = "--project-dir",
4645
CMD_CHAT = "chat",
47-
CMD_KICS_CHAT = "kics",
46+
KICS = "kics",
4847
CMD_CHAT_APIKEY = "--chat-apikey",
4948
CMD_CHAT_FILE = "--result-file",
5049
CMD_CHAT_LINE = "--result-line",
@@ -54,7 +53,6 @@ export enum CxConstants {
5453
CMD_CHAT_CONVERSATION_ID = "--conversation-id",
5554
CMD_CHAT_MODEL = "--model",
5655
CMD_MASK_SECRETS = "mask",
57-
CMD_SAST_CHAT = "sast",
5856
CMD_SAST_CHAT_RESULT_ID = "--sast-result-id",
5957
CMD_SAST_CHAT_RESULT_RESULTS_FILE = "--scan-results-file",
6058
CMD_SAST_CHAT_RESULT_SOURCE_FILE = "--source-dir",

src/main/wrapper/CxWrapper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export class CxWrapper {
274274
}
275275

276276
async kicsRemediation(resultsFile: string, kicsFile:string, engine:string,similarityIds?: string):Promise<[Promise<CxCommandOutput>,any]> {
277-
const commands: string[] = [CxConstants.CMD_UTILS, CxConstants.CMD_REMEDIATION,CxConstants.SUB_CMD_REMEDIATION_KICS,CxConstants.KICS_REMEDIATION_RESULTS_FILE, resultsFile, CxConstants.KICS_REMEDIATION_KICS_FILE, kicsFile];
277+
const commands: string[] = [CxConstants.CMD_UTILS, CxConstants.CMD_REMEDIATION,CxConstants.KICS,CxConstants.KICS_REMEDIATION_RESULTS_FILE, resultsFile, CxConstants.KICS_REMEDIATION_KICS_FILE, kicsFile];
278278
if(engine.length>0){
279279
commands.push(CxConstants.ENGINE,engine)
280280
}
@@ -312,7 +312,7 @@ export class CxWrapper {
312312
async kicsChat(apikey: string, file: string, line: number, severity: string, vulnerability: string, input: string, conversationId?: string, model?: string): Promise<CxCommandOutput> {
313313
const commands: string[] = [
314314
CxConstants.CMD_CHAT,
315-
CxConstants.CMD_KICS_CHAT,
315+
CxConstants.KICS,
316316
CxConstants.CMD_CHAT_APIKEY, apikey,
317317
CxConstants.CMD_CHAT_FILE, file,
318318
CxConstants.CMD_CHAT_LINE, line.toString(),
@@ -333,7 +333,7 @@ export class CxWrapper {
333333
async sastChat(apikey: string, sourceFile: string, resultsFile: string, resultID: string, input: string, conversationId?: string, model?: string): Promise<CxCommandOutput> {
334334
const commands: string[] = [
335335
CxConstants.CMD_CHAT,
336-
CxConstants.CMD_SAST_CHAT,
336+
CxConstants.SAST,
337337
CxConstants.CMD_SAST_CHAT_RESULT_ID, resultID,
338338
CxConstants.CMD_SAST_CHAT_RESULT_RESULTS_FILE, resultsFile,
339339
CxConstants.CMD_SAST_CHAT_RESULT_SOURCE_FILE, sourceFile,
20 KB
Binary file not shown.

src/main/wrapper/resources/cx-mac

32.5 KB
Binary file not shown.

src/main/wrapper/resources/cx.exe

18 KB
Binary file not shown.

0 commit comments

Comments
 (0)