Skip to content

Commit acb52b0

Browse files
author
cx-Margarita-LevitM
committed
Add new CxOneCurrentScanId variable
1 parent 9c4a362 commit acb52b0

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

cxAstScan/services/TaskRunner.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ export class TaskRunner {
4545
const scan: CxScan = cxCommandOutput.payload.pop();
4646

4747
if (agentTempDirectory && scan && scan.id) {
48-
taskLib.setVariable("CxOneScanId", scan.id ,false, true); // For backward compatibility
48+
taskLib.setVariable("CxOneScanId", scan.id);
49+
//Add new variables due to AST-113124
50+
taskLib.setVariable("CxOneCurrentScanId", scan.id, false, false);
4951
await this.generateResults(wrapper, agentTempDirectory, scan.id);
5052
}
5153
}

cxAstScan/task.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "ab4db6a3-9fac-4db4-9646-9543952fd278",
2+
"id": "dd862edc-5d88-4d2c-b83b-fff2a695e5c0",
33
"name": "Checkmarx AST",
44
"friendlyName": "Checkmarx AST",
55
"description": "Add Secure Source Code Analysis inside your build process",
@@ -77,5 +77,11 @@
7777
}
7878
},
7979
"messages": {
80-
}
80+
},
81+
"OutputVariables": [
82+
{
83+
"name": "CxOneScanId",
84+
"description": "Checkmarx One scan ID from created scan"
85+
}
86+
]
8187
}

vss-extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"height": "175%",
100100
"width": "100%",
101101
"supportsTasks": [
102-
"ab4db6a3-9fac-4db4-9646-9543952fd278"
102+
"dd862edc-5d88-4d2c-b83b-fff2a695e5c0"
103103
]
104104
}
105105
},

0 commit comments

Comments
 (0)