Skip to content

Commit c61e774

Browse files
author
cx-Margarita-LevitM
committed
AST-113124 - Add Scan ID variable for capturing and not only via output
1 parent 998b889 commit c61e774

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

cxAstScan/services/TaskRunner.ts

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

4747
if (agentTempDirectory && scan && scan.id) {
48-
taskLib.setVariable("CxOneScanId", scan.id);
48+
taskLib.setVariable("CxOneScanId", scan.id ,false, true); // For backward compatibility
4949
await this.generateResults(wrapper, agentTempDirectory, scan.id);
5050
}
5151
}

cxAstScan/task.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,5 @@
7777
}
7878
},
7979
"messages": {
80-
},
81-
"OutputVariables": [
82-
{
83-
"name": "CxOneScanId",
84-
"description": "Checkmarx One scan ID from created scan"
85-
}
86-
]
80+
}
8781
}

0 commit comments

Comments
 (0)