Skip to content

Commit 3bbc094

Browse files
committed
merge + fixs
2 parents 3b70d2e + 3e73084 commit 3bbc094

25 files changed

+1909
-762
lines changed

.github/workflows/ast-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Checkmarx AST Scan
22

3-
on: [ pull_request, workflow_dispatch ]
3+
on: [ workflow_dispatch ]
44

55
jobs:
66
cx-scan:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- uses: actions/checkout@v3
99
- name: Use Node.js 14
10-
uses: actions/setup-node@v3.4.0
10+
uses: actions/setup-node@v3.4.1
1111
with:
1212
node-version: 14
1313
registry-url: https://npm.pkg.github.com/

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fetch-depth: 0
1515
- name: Set env
1616
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
17-
- uses: actions/setup-node@v3.4.0
17+
- uses: actions/setup-node@v3.4.1
1818
with:
1919
node-version: 10
2020
registry-url: https://npm.pkg.github.com/

checkmarx-ast-cli.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.21
1+
2.0.25

package-lock.json

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

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@CheckmarxDev/ast-cli-javascript-wrapper",
3-
"version": "0.0.55",
3+
"version": "0.0.56",
44
"description": "AST CLI Javascript wrapper",
55
"main": "dist/main/wrapper/CxWrapper.js",
66
"typings": "dist/main/wrapper/CxWrapper.d.ts",
@@ -9,11 +9,11 @@
99
"README.md"
1010
],
1111
"dependencies": {
12-
"log4js": "^6.6.0"
12+
"log4js": "^6.6.1"
1313
},
1414
"scripts": {
1515
"build": "tsc",
16-
"postbuild": "copyfiles -u 1 src/main/wrapper/resources/cx* dist/",
16+
"postbuild": "copyfiles -u 1 src/main/wrapper/resources/cx* dist/;copyfiles -u 1 src/tests/data/* dist/;",
1717
"lint": "eslint . --ext .ts",
1818
"lint-and-fix": "eslint . --ext .ts --fix",
1919
"test": "copyfiles -u 1 src/tests/data/* dist/; tsc && jest --runInBand --coverage"
@@ -27,15 +27,15 @@
2727
"homepage": "https://github.com/CheckmarxDev/ast-cli-javascript-wrapper#readme",
2828
"devDependencies": {
2929
"@types/jest": "^27.5.0",
30-
"@types/node": "^18.0.3",
31-
"@typescript-eslint/eslint-plugin": "^5.30.6",
32-
"@typescript-eslint/parser": "^5.30.6",
30+
"@types/node": "^18.7.13",
31+
"@typescript-eslint/eslint-plugin": "^5.35.1",
32+
"@typescript-eslint/parser": "^5.35.1",
3333
"copyfiles": "^2.4.1",
34-
"eslint": "^8.19.0",
34+
"eslint": "^8.22.0",
3535
"jest": "^26.6.3",
36-
"jest-cli": "28.1.2",
36+
"jest-cli": "29.0.0",
3737
"ts-jest": "^26.0.0",
38-
"typescript": "^4.7.4"
38+
"typescript": "^4.8.2"
3939
},
4040
"publishConfig": {
4141
"registry": "https://npm.pkg.github.com"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export default class CxKicsRemediation {
2+
availableRemediation: string;
3+
appliedRemediation: string;
4+
5+
constructor(availableRemediation: string,appliedRemediation: string) {
6+
this.availableRemediation = availableRemediation;
7+
this.appliedRemediation = appliedRemediation;
8+
}
9+
10+
static parseKicsRemediation(resultObject: any): CxKicsRemediation {
11+
const output: CxKicsRemediation = new CxKicsRemediation(resultObject.available_remediation_count,resultObject.applied_remediation_count);
12+
return output;
13+
}
14+
}

src/main/results/CxCvss.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
export default class CxCvss {
2+
version:string;
3+
attackVector:string;
4+
availability:string;
5+
confidentiality:string;
6+
attackComplexity:string;
7+
integrityImpact:string;
8+
scope:string;
9+
privilegesRequired:string;
10+
userInteraction:string;
11+
12+
constructor(version: string,attackVector: string,availability: string,confidentiality: string,attackComplexity:string,integrityImpact:string,scope:string,privilegesRequired:string,userInteraction:string) {
13+
this.version = version;
14+
this.attackVector = attackVector;
15+
this.availability = availability;
16+
this.confidentiality = confidentiality;
17+
this.attackComplexity = attackComplexity;
18+
this.integrityImpact = integrityImpact;
19+
this.scope = scope;
20+
this.privilegesRequired = privilegesRequired;
21+
this.userInteraction = userInteraction;
22+
}
23+
}

src/main/results/CxData.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import CxPackageData from "./CxPackageData";
2+
import CxScaPackageData from "./CxScaPackageData";
3+
import CxNode from "./CxNode";
4+
5+
export default class CxData {
6+
packageData: CxPackageData[];
7+
packageIdentifier: string;
8+
scaPackageData: CxScaPackageData;
9+
queryId: string;
10+
queryName: string;
11+
group: string;
12+
resultHash: string;
13+
languageName: string;
14+
nodes: CxNode[];
15+
recommendedVersion: string;
16+
17+
constructor(packageData: CxPackageData[],packageIdentifier: string,scaPackageData: CxScaPackageData,queryId: string,queryName: string,group: string,resultHash: string,languageName: string,nodes: CxNode[],recommendedVersion:string) {
18+
this.packageData = packageData;
19+
this.packageIdentifier = packageIdentifier;
20+
this.scaPackageData = scaPackageData;
21+
this.queryId = queryId;
22+
this.queryName = queryName;
23+
this.group = group;
24+
this.resultHash = resultHash;
25+
this.languageName = languageName;
26+
this.nodes = nodes;
27+
this.recommendedVersion=recommendedVersion;
28+
}
29+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default class CxDependencyPaths {
2+
id: string;
3+
name: string;
4+
version: string;
5+
isDevelopment: boolean;
6+
}

0 commit comments

Comments
 (0)