You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Wait for Docker events command to verify any images were built on this run
58
73
letevents: ICommandResult=awaitevPromise;
@@ -64,33 +79,148 @@ export class ContainerMapping implements IMicrosoftSecurityDevOps {
64
79
varimages: ICommandResult;
65
80
if(!cleanedEventsOutput){
66
81
tl.debug(`No Docker events found`);
67
-
// Log a detail if no events found. We will check for this DetailTimeline record from our backend to reduce calls to ADO REST API to be mindful of Rate Limits.
// Log a detail if no events found. We will check for this DetailTimeline record from our backend to reduce calls to ADO REST API to be mindful of Rate Limits., remove after oidc
83
+
tl.logDetail(uuidv4(),"No Docker events found",null,"NoDockerEvents","NoDockerEvents",999);//remove after oidc
69
84
// Initialize an empty Command Result for Docker images
//writeToOutStream("Container Mapping data sent successfully in " + (new Date(sendEndTime).getTime() - new Date(sendStartTime).getTime()) + "ms"); //readd after oidc
126
+
writeToOutStream(`##[debug]Container Mapping data sent successfully in ${(newDate(sendEndTime).getTime()-newDate(sendStartTime).getTime())}ms`);//remove after oidc
127
+
}
128
+
129
+
/*
130
+
* Get the OIDC Token. Returns the token as a string.
* Run the specified function based on the task type
217
+
* Run the specified function based on the task type.
88
218
*/
89
219
asyncrun(){
90
220
// Group command adds a collapsible section in the logs - https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash#formatting-commands
91
221
writeToOutStream("##[group]This task was injected as part of Microsoft Defender for DevOps enablement- https://go.microsoft.com/fwlink/?linkid=2231419");
92
-
// This section is used as a delimiter while fetching logs from the REST API in our backend, do not modify
93
-
writeToOutStream("##[section]:::::");
222
+
// This section is used as a delimiter while fetching logs from the REST API in our backend, remove after oidc
223
+
writeToOutStream("##[section]:::::");//remove after oidc
Copy file name to clipboardExpand all lines: src/MicrosoftSecurityDevOps/v1/task.json
+22-5Lines changed: 22 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,11 @@
11
11
"author": "Microsoft Corporation",
12
12
"version": {
13
13
"Major": 1,
14
-
"Minor": 12,
15
-
"Patch": 1
14
+
"Minor": 18,
15
+
"Patch": 0
16
16
},
17
17
"preview": true,
18
-
"minimumAgentVersion": "1.83.0",
18
+
"minimumAgentVersion": "3.232.1",
19
19
"groups": [
20
20
{
21
21
"name": "advanced",
@@ -108,14 +108,31 @@
108
108
"helpMarkDown": "The name of the pipeline artifact to publish the SARIF result file to. Default: CodeAnalysisLogs</br>\"CodeAnalysisLogs\" is required for integration with [Defender for DevOps](https://aka.ms/defender-for-devops).</br>If left as \"CodeAnalysisLogs\", it integrates with the [SARIF Scans Tab](https://marketplace.visualstudio.com/items?itemName=sariftools.scans) viewing experience.",
109
109
"defaultValue": "CodeAnalysisLogs",
110
110
"groupName": "advanced"
111
+
},
112
+
{
113
+
"name": "alternateDevOpsServer",
114
+
"label": "Alternate DevOps Server",
115
+
"type": "string",
116
+
"required": false,
117
+
"helpMarkDown": "An alternative DevOps server endpoint for advanced scenarios. This should be left empty.",
118
+
"groupName": "advanced"
111
119
}
112
120
],
113
121
"instanceNameFormat": "Run Microsoft Defender for DevOps",
0 commit comments