Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
c5e0da9
Code refactor, fix in projects and branch list added
tiagobcx Nov 9, 2021
e50656c
merge with master
tiagobcx Nov 9, 2021
2c5cab7
merge with master
tiagobcx Nov 9, 2021
c82a5a1
merge with master
tiagobcx Nov 9, 2021
ebdd3c9
fix integration tests, branch required
tiagobcx Nov 9, 2021
127c4d7
fix integration tests, branch required
tiagobcx Nov 10, 2021
e17bfa2
fix integration tests, branch required
tiagobcx Nov 10, 2021
6bfccc6
fix integration tests, branch required
tiagobcx Nov 10, 2021
c70508c
fix integration tests, branch required
tiagobcx Nov 10, 2021
6bd5172
fix integration tests, branch required
tiagobcx Nov 11, 2021
680f25b
fix formatting
tiagobcx Nov 11, 2021
3341c81
fix formatting
tiagobcx Nov 11, 2021
b7cc362
fix formatting
tiagobcx Nov 11, 2021
abc974f
fix formatting
tiagobcx Nov 11, 2021
c745ea8
fix formatting
tiagobcx Nov 11, 2021
234056f
fix formatting
tiagobcx Nov 11, 2021
822e9af
fix tests
tiagobcx Nov 11, 2021
00e2fd2
fix tests increase timeout
tiagobcx Nov 11, 2021
eb83445
fix tests increase timeout
tiagobcx Nov 11, 2021
568ed1b
fix tests increase timeout
tiagobcx Nov 11, 2021
2f486fa
fix tests increase timeout
tiagobcx Nov 11, 2021
26d7963
fix tests increase timeout
tiagobcx Nov 11, 2021
b46f365
fix tests increase timeout
tiagobcx Nov 11, 2021
fabf120
fix tests increase timeout
tiagobcx Nov 11, 2021
8b046dd
fix tests increase timeout
tiagobcx Nov 11, 2021
0f9330c
fix tests increase timeout
tiagobcx Nov 11, 2021
e84e576
fix tests increase timeout
tiagobcx Nov 11, 2021
21dee33
fix some structure issues
tiagobcx Nov 12, 2021
c683fae
fix some structure issues
tiagobcx Nov 12, 2021
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
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Copy executable
run: cp ./src/main/resources/cx-linux /tmp/
- name: Permissions to executable
run: sudo chmod 777 /tmp/cx-linux
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
Expand All @@ -22,7 +18,6 @@ jobs:
CX_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET}}
CX_BASE_URI: ${{ secrets.BASE_URI }}
CX_TENANT: ${{ secrets.TENANT }}
PATH_TO_EXECUTABLE: /tmp/cx-linux
run: npm test
cx-scan:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<summary>Table of Contents</summary>
<ol>
<li>
<a href="#about-the-project">About The Project</a>
<a href="#about-the-project">About The CxProject</a>
</li>
<li>
<a href="#getting-started">Getting Started</a>
Expand All @@ -26,7 +26,7 @@
</details>

<!-- ABOUT THE PROJECT -->
## About The Project
## About The CxProject

The Javascript-Wrapper is part of the AST-CLI project that provides a shared infrastructure across the AST projects.
It contains technology neutral repository interfaces as well as a metadata model for persisting Javascript classes.
Expand Down Expand Up @@ -86,7 +86,7 @@ setx PATH_TO_EXECUTABLE {value}

Checkmarx - AST Integrations Team

Project Link: [https://github.com/CheckmarxDev/ast-cli-javascript-wrapper](https://github.com/CheckmarxDev/ast-cli-javascript-wrapper)
CxProject Link: [https://github.com/CheckmarxDev/ast-cli-javascript-wrapper](https://github.com/CheckmarxDev/ast-cli-javascript-wrapper)


© 2021 Checkmarx Ltd. All Rights Reserved.
2 changes: 1 addition & 1 deletion jest.setup.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
jest.setTimeout(1000000); // in milliseconds
jest.setTimeout(3600000);// in milliseconds
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"scripts": {
"build": "tsc",
"postbuild": "copyfiles -u 1 src/main/resources/cx* dist/",
"postbuild": "copyfiles -u 1 src/main/wrapper/resources/cx* dist/",
"test": "tsc && jest --runInBand"
},
"repository": "https://github.com/CheckmarxDev/ast-cli-javascript-wrapper.git",
Expand Down
184 changes: 0 additions & 184 deletions src/main/CxAuth.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/CxCommandOutput.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/main/CxParamType.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/main/CxResultType.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/main/CxScan.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/main/CxScanConfig.ts

This file was deleted.

82 changes: 0 additions & 82 deletions src/main/ExecutionService.ts

This file was deleted.

8 changes: 8 additions & 0 deletions src/main/project/CxProject.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default class CxProject {
ID: string = " ";
Name: string = " ";
CreatedAt: string = " ";
UpdatedAt: string = " ";
Tags: object = {} ;
Groups: any = [] ;
}
14 changes: 14 additions & 0 deletions src/main/results/CxResult.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export default class CxResult {
type: string = "";
id: string = "";
status: string = "";
state: string = "";
severity: string = "";
created: string = "";
firstFoundAt: string = "";
foundAt: string = "";
firstScanId: string = "";
data: any = {};
comments: any = {};
vulnerabilityDetails:any = {};
}
4 changes: 4 additions & 0 deletions src/main/results/CxResultType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export enum CxResultType {
LIST = "list",
SUMMARY = "summary"
}
Loading