Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added command restrictions for CocoaPodsV0, DownloadSecureFileV1 #14507

Merged
merged 11 commits into from
Apr 5, 2021
Merged
11 changes: 10 additions & 1 deletion Tasks/CocoaPodsV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"DeploymentGroup"
],
"author": "Microsoft Corporation",
"minimumAgentVersion": "2.182.1",
"version": {
"Major": 0,
"Minor": 181,
"Minor": 184,
"Patch": 0
},
"groups": [
Expand Down Expand Up @@ -64,6 +65,14 @@
"argumentFormat": ""
}
},
"restrictions": {
"commands": {
"mode": "restricted"
},
"settableVariables": {
"allowed": []
}
},
"messages": {
"PodReturnCode": "The 'pod' command exited with return code: %d",
"PodFailed": "The 'pod' command failed with error: %s",
Expand Down
11 changes: 10 additions & 1 deletion Tasks/CocoaPodsV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"DeploymentGroup"
],
"author": "Microsoft Corporation",
"minimumAgentVersion": "2.182.1",
"version": {
"Major": 0,
"Minor": 181,
"Minor": 184,
"Patch": 0
},
"groups": [
Expand Down Expand Up @@ -64,6 +65,14 @@
"argumentFormat": ""
}
},
"restrictions": {
"commands": {
"mode": "restricted"
},
"settableVariables": {
"allowed": []
}
},
"messages": {
"PodReturnCode": "ms-resource:loc.messages.PodReturnCode",
"PodFailed": "ms-resource:loc.messages.PodFailed",
Expand Down
14 changes: 12 additions & 2 deletions Tasks/DownloadSecureFileV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 181,
"Minor": 184,
"Patch": 0
},
"runsOn": [
"Agent",
"DeploymentGroup"
],
"demands": [],
"minimumAgentVersion": "2.116.0",
"minimumAgentVersion": "2.182.1",
"instanceNameFormat": "Download secure file",
"inputs": [
{
Expand Down Expand Up @@ -61,5 +61,15 @@
"argumentFormat": ""
}
},
"restrictions": {
"commands": {
"mode": "restricted"
},
"settableVariables": {
"allowed": [
"secureFilePath"
]
}
},
"messages": {}
}
14 changes: 12 additions & 2 deletions Tasks/DownloadSecureFileV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 181,
"Minor": 184,
"Patch": 0
},
"runsOn": [
"Agent",
"DeploymentGroup"
],
"demands": [],
"minimumAgentVersion": "2.116.0",
"minimumAgentVersion": "2.182.1",
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",
"inputs": [
{
Expand Down Expand Up @@ -61,5 +61,15 @@
"argumentFormat": ""
}
},
"restrictions": {
"commands": {
"mode": "restricted"
},
"settableVariables": {
"allowed": [
"secureFilePath"
]
}
},
"messages": {}
}