Skip to content

Commit 81090d2

Browse files
cx-daniel-greenspangithub-actions
andauthored
Enhance ASPM results (AST-000) (#820)
* update pre release * Update Checkmarx CLI to 2.3.19-traits * add scanId to risk management * update version * Update Checkmarx CLI to 2.3.19-daniel * commit * commit * Update Checkmarx CLI to 2.3.19 * commit * commit --------- Co-authored-by: github-actions <github-actions@github.com>
1 parent 162c48d commit 81090d2

File tree

7 files changed

+14
-10
lines changed

7 files changed

+14
-10
lines changed

.github/workflows/update-cli.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,3 @@ jobs:
7070
[1]: https://github.com/Checkmarx/checkmarx-ast-cli
7171
labels: cxone
7272
branch: feature/update_cli_${{ steps.checkmarx-ast-cli.outputs.release_tag }}
73-

checkmarx-ast-cli.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.18
1+
2.3.19

src/main/wrapper/CxWrapper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,10 @@ export class CxWrapper {
229229
return exec.executeResultsCommandsFile(scanId, CxConstants.FORMAT_JSON, CxConstants.FORMAT_JSON_FILE, commands, this.config.pathToExecutable, fileName);
230230
}
231231

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

236237
if (limit !== undefined) {
237238
commands.push(CxConstants.CMD_LIMIT, limit.toString());
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:551ccf5ebba15baf0f3e58ca4053f7bf7874313529fba299cbf5f451aafcb2f8
3-
size 73134232
2+
oid sha256:9eae11d84cb766a5df14ce5e9d57013268f3d687484cf2a4d67595c419a4a762
3+
size 73937080

src/main/wrapper/resources/cx-mac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:3781358fff51f440295a97b27108a7e9a473a2b10254280487afc789bca62a47
3-
size 147989360
2+
oid sha256:68cb8baeb6eb68cff07440c2dd142b5a3cf53b2d12c4ca98dd01d0a95a4f9370
3+
size 148816000

src/main/wrapper/resources/cx.exe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:aa799496d86559052607dae544ec5a9556bcc4dbba3d4541bec3f704b32f0242
3-
size 75029888
2+
oid sha256:b073010a1e360028fcc2eee56d1a7376be36459a2ea1a27c0a516a227a334943
3+
size 75835264

src/tests/ResultTest.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ describe("Results cases",() => {
7070
it("Risk Management - Successful case", async () => {
7171
const auth = new CxWrapper(cxScanConfig);
7272
const projectId = "a5d99fa4-973d-48b5-86c7-6401487e1d52"
73+
const scanId = "068feb0f-cb8a-4f79-b9b1-e6bec009e517"
7374

7475
const cxCommandOutput: CxCommandOutput = await auth.riskManagementResults(
75-
projectId
76+
projectId, scanId
7677
);
7778

7879
const str = JSON.stringify(cxCommandOutput);
@@ -91,8 +92,11 @@ describe("Results cases",() => {
9192
it("Risk Management - With Limit", async () => {
9293
const auth = new CxWrapper(cxScanConfig);
9394
const projectId = "a5d99fa4-973d-48b5-86c7-6401487e1d52"
95+
const scanId = "068feb0f-cb8a-4f79-b9b1-e6bec009e517"
96+
9497
const cxCommandOutput: CxCommandOutput = await auth.riskManagementResults(
9598
projectId,
99+
scanId,
96100
10
97101
);
98102

0 commit comments

Comments
 (0)