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
1 change: 0 additions & 1 deletion .github/workflows/update-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,3 @@ jobs:
[1]: https://github.com/Checkmarx/checkmarx-ast-cli
labels: cxone
branch: feature/update_cli_${{ steps.checkmarx-ast-cli.outputs.release_tag }}

2 changes: 1 addition & 1 deletion checkmarx-ast-cli.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.18
2.3.19
3 changes: 2 additions & 1 deletion src/main/wrapper/CxWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,10 @@ export class CxWrapper {
return exec.executeResultsCommandsFile(scanId, CxConstants.FORMAT_JSON, CxConstants.FORMAT_JSON_FILE, commands, this.config.pathToExecutable, fileName);
}

async riskManagementResults(projectId: string, limit?: number): Promise<CxCommandOutput> {
async riskManagementResults(projectId: string, scanId: string, limit?: number): Promise<CxCommandOutput> {
const commands: string[] = [CxConstants.CMD_RESULT, CxConstants.CMD_RISK_MANAGEMENT];
commands.push(CxConstants.PROJECT_ID, projectId);
commands.push(CxConstants.SCAN_ID, scanId);

if (limit !== undefined) {
commands.push(CxConstants.CMD_LIMIT, limit.toString());
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
6 changes: 5 additions & 1 deletion src/tests/ResultTest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ describe("Results cases",() => {
it("Risk Management - Successful case", async () => {
const auth = new CxWrapper(cxScanConfig);
const projectId = "a5d99fa4-973d-48b5-86c7-6401487e1d52"
const scanId = "068feb0f-cb8a-4f79-b9b1-e6bec009e517"

const cxCommandOutput: CxCommandOutput = await auth.riskManagementResults(
projectId
projectId, scanId
);

const str = JSON.stringify(cxCommandOutput);
Expand All @@ -91,8 +92,11 @@ describe("Results cases",() => {
it("Risk Management - With Limit", async () => {
const auth = new CxWrapper(cxScanConfig);
const projectId = "a5d99fa4-973d-48b5-86c7-6401487e1d52"
const scanId = "068feb0f-cb8a-4f79-b9b1-e6bec009e517"

const cxCommandOutput: CxCommandOutput = await auth.riskManagementResults(
projectId,
scanId,
10
);

Expand Down