Skip to content

Commit

Permalink
Add restrictions to app store extension tasks (#220)
Browse files Browse the repository at this point in the history
* add restrictions

* bump task versions

* bump minimum agent version

* fix wrong minimum agent version

* Bump tasks versions

Co-authored-by: Nikita Ezzhev <[email protected]>
  • Loading branch information
DaniilShmelev and EzzhevNikita authored Apr 5, 2021
1 parent d579a46 commit 43e071b
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 12 deletions.
12 changes: 10 additions & 2 deletions Tasks/AppStorePromote/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"demands": [ "xcode" ],
"version": {
"Major": "1",
"Minor": "183",
"Minor": "186",
"Patch": "0"
},
"minimumAgentVersion": "1.95.3",
"minimumAgentVersion": "2.182.1",
"instanceNameFormat": "Submit to the App Store for review",
"groups": [
{
Expand Down Expand Up @@ -233,6 +233,14 @@
"argumentFormat": ""
}
},
"restrictions": {
"commands": {
"mode": "restricted"
},
"settableVariables": {
"allowed": []
}
},
"messages": {
"DarwinOnly": "The Apple App Store Promote task can only run on a Mac computer.",
"UninstallFastlaneFailed": "There were errors when trying to uninstall fastlane. Review the error and if required add a script to your pipeline to cleanly uninstall fastlane prior to running this task. Uninstall error: %s",
Expand Down
12 changes: 10 additions & 2 deletions Tasks/AppStorePromote/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
],
"version": {
"Major": "1",
"Minor": "183",
"Minor": "186",
"Patch": "0"
},
"minimumAgentVersion": "1.95.3",
"minimumAgentVersion": "2.182.1",
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",
"groups": [
{
Expand Down Expand Up @@ -235,6 +235,14 @@
"argumentFormat": ""
}
},
"restrictions": {
"commands": {
"mode": "restricted"
},
"settableVariables": {
"allowed": []
}
},
"messages": {
"DarwinOnly": "ms-resource:loc.messages.DarwinOnly",
"UninstallFastlaneFailed": "ms-resource:loc.messages.UninstallFastlaneFailed",
Expand Down
12 changes: 10 additions & 2 deletions Tasks/AppStoreRelease/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"demands": [ "xcode" ],
"version": {
"Major": "1",
"Minor": "183",
"Minor": "186",
"Patch": "0"
},
"minimumAgentVersion": "1.95.3",
"minimumAgentVersion": "2.182.1",
"instanceNameFormat": "Publish to the App Store $(releaseTrack) track",
"groups": [
{
Expand Down Expand Up @@ -370,6 +370,14 @@
"argumentFormat": ""
}
},
"restrictions": {
"commands": {
"mode": "restricted"
},
"settableVariables": {
"allowed": []
}
},
"messages": {
"DarwinOnly": "The Apple App Store Release task can only run on a Mac computer.",
"UninstallFastlaneFailed": "There were errors when trying to uninstall fastlane. Review the error and if required add a script to your pipeline to cleanly uninstall fastlane prior to running this task. Uninstall error: %s",
Expand Down
12 changes: 10 additions & 2 deletions Tasks/AppStoreRelease/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
],
"version": {
"Major": "1",
"Minor": "183",
"Minor": "186",
"Patch": "0"
},
"minimumAgentVersion": "1.95.3",
"minimumAgentVersion": "2.182.1",
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",
"groups": [
{
Expand Down Expand Up @@ -372,6 +372,14 @@
"argumentFormat": ""
}
},
"restrictions": {
"commands": {
"mode": "restricted"
},
"settableVariables": {
"allowed": []
}
},
"messages": {
"DarwinOnly": "ms-resource:loc.messages.DarwinOnly",
"UninstallFastlaneFailed": "ms-resource:loc.messages.UninstallFastlaneFailed",
Expand Down
12 changes: 10 additions & 2 deletions Tasks/IpaResign/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"demands": [ "xcode" ],
"version": {
"Major": "1",
"Minor": "183",
"Minor": "186",
"Patch": "0"
},
"minimumAgentVersion": "1.95.3",
"minimumAgentVersion": "2.182.1",
"instanceNameFormat": "Resign ipa file",
"groups": [
{
Expand Down Expand Up @@ -207,6 +207,14 @@
"argumentFormat": ""
}
},
"restrictions": {
"commands": {
"mode": "restricted"
},
"settableVariables": {
"allowed": []
}
},
"messages": {
"DarwinOnly": "The Ipa Resign task can only run on a Mac computer.",
"UninstallFastlaneFailed": "There were errors when trying to uninstall fastlane. Review the error and if required add a script to your pipeline to cleanly uninstall fastlane prior to running this task. Uninstall error: %s",
Expand Down
12 changes: 10 additions & 2 deletions Tasks/IpaResign/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
],
"version": {
"Major": "1",
"Minor": "183",
"Minor": "186",
"Patch": "0"
},
"minimumAgentVersion": "1.95.3",
"minimumAgentVersion": "2.182.1",
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",
"groups": [
{
Expand Down Expand Up @@ -209,6 +209,14 @@
"argumentFormat": ""
}
},
"restrictions": {
"commands": {
"mode": "restricted"
},
"settableVariables": {
"allowed": []
}
},
"messages": {
"DarwinOnly": "ms-resource:loc.messages.DarwinOnly",
"UninstallFastlaneFailed": "ms-resource:loc.messages.UninstallFastlaneFailed",
Expand Down

0 comments on commit 43e071b

Please sign in to comment.