diff options
author | Josh Spicer <josh.spicer@microsoft.com> | 2022-05-30 18:55:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 18:55:18 +0300 |
commit | b6a8f9fc7f63c76cb49670355b223ce638a36e19 (patch) | |
tree | 346ab79c5882c8917c869e3b97e202dcae98c8d0 /extensions | |
parent | 6fcdf8e54094e27516543ced79866795cbf4e01e (diff) |
Add customizations.codespaces.repositories.permissions (#150555)
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/configuration-editing/schemas/devContainer.schema.generated.json | 605 | ||||
-rw-r--r-- | extensions/configuration-editing/schemas/devContainer.schema.src.json | 118 |
2 files changed, 723 insertions, 0 deletions
diff --git a/extensions/configuration-editing/schemas/devContainer.schema.generated.json b/extensions/configuration-editing/schemas/devContainer.schema.generated.json index d47f1192400..22d0fb5e802 100644 --- a/extensions/configuration-editing/schemas/devContainer.schema.generated.json +++ b/extensions/configuration-editing/schemas/devContainer.schema.generated.json @@ -429,6 +429,127 @@ } }, "additionalProperties": false + }, + "codespaces": { + "type": "object", + "properties": { + "repositories": { + "type": "object", + "description": "Configuration relative to a GitHub repository", + "pattern": "^[a-zA-Z0-9-_.]+[.]*/[a-zA-Z0-9-_*]+[.]*$", + "errorMessage": "Expected format: 'owner/repo' (eg: 'microsoft/vscode'). A wildcard (*) is permitted for the repo name. (eg: 'microsoft/*').", + "oneOf": [ + { + "properties": { + "permissions": { + "type": "object", + "description": "Addional repository permissions. See https://aka.ms/ghcs/multi-repo-auth for more info.", + "anyOf": [ + { + "actions": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "checks": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "contents": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "deployments": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "discussions": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "issues": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "packages": { + "type": "string", + "enum": [ + "read" + ] + }, + "pages": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "pull_requests": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "repository_projects": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "statuses": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "workflows": { + "type": "string", + "enum": [ + "write" + ] + } + } + ], + "additionalProperties": false + } + } + }, + { + "properties": { + "permissions": { + "type": "string", + "enum": [ + "read-all", + "write-all" + ] + } + } + } + ], + "additionalProperties": false + } + }, + "additionalProperties": false } }, "additionalProperties": { @@ -865,6 +986,127 @@ } }, "additionalProperties": false + }, + "codespaces": { + "type": "object", + "properties": { + "repositories": { + "type": "object", + "description": "Configuration relative to a GitHub repository", + "pattern": "^[a-zA-Z0-9-_.]+[.]*/[a-zA-Z0-9-_*]+[.]*$", + "errorMessage": "Expected format: 'owner/repo' (eg: 'microsoft/vscode'). A wildcard (*) is permitted for the repo name. (eg: 'microsoft/*').", + "oneOf": [ + { + "properties": { + "permissions": { + "type": "object", + "description": "Addional repository permissions. See https://aka.ms/ghcs/multi-repo-auth for more info.", + "anyOf": [ + { + "actions": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "checks": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "contents": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "deployments": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "discussions": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "issues": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "packages": { + "type": "string", + "enum": [ + "read" + ] + }, + "pages": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "pull_requests": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "repository_projects": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "statuses": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "workflows": { + "type": "string", + "enum": [ + "write" + ] + } + } + ], + "additionalProperties": false + } + } + }, + { + "properties": { + "permissions": { + "type": "string", + "enum": [ + "read-all", + "write-all" + ] + } + } + } + ], + "additionalProperties": false + } + }, + "additionalProperties": false } }, "additionalProperties": { @@ -1267,6 +1509,127 @@ } }, "additionalProperties": false + }, + "codespaces": { + "type": "object", + "properties": { + "repositories": { + "type": "object", + "description": "Configuration relative to a GitHub repository", + "pattern": "^[a-zA-Z0-9-_.]+[.]*/[a-zA-Z0-9-_*]+[.]*$", + "errorMessage": "Expected format: 'owner/repo' (eg: 'microsoft/vscode'). A wildcard (*) is permitted for the repo name. (eg: 'microsoft/*').", + "oneOf": [ + { + "properties": { + "permissions": { + "type": "object", + "description": "Addional repository permissions. See https://aka.ms/ghcs/multi-repo-auth for more info.", + "anyOf": [ + { + "actions": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "checks": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "contents": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "deployments": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "discussions": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "issues": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "packages": { + "type": "string", + "enum": [ + "read" + ] + }, + "pages": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "pull_requests": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "repository_projects": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "statuses": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "workflows": { + "type": "string", + "enum": [ + "write" + ] + } + } + ], + "additionalProperties": false + } + } + }, + { + "properties": { + "permissions": { + "type": "string", + "enum": [ + "read-all", + "write-all" + ] + } + } + } + ], + "additionalProperties": false + } + }, + "additionalProperties": false } }, "additionalProperties": { @@ -1643,6 +2006,127 @@ } }, "additionalProperties": false + }, + "codespaces": { + "type": "object", + "properties": { + "repositories": { + "type": "object", + "description": "Configuration relative to a GitHub repository", + "pattern": "^[a-zA-Z0-9-_.]+[.]*/[a-zA-Z0-9-_*]+[.]*$", + "errorMessage": "Expected format: 'owner/repo' (eg: 'microsoft/vscode'). A wildcard (*) is permitted for the repo name. (eg: 'microsoft/*').", + "oneOf": [ + { + "properties": { + "permissions": { + "type": "object", + "description": "Addional repository permissions. See https://aka.ms/ghcs/multi-repo-auth for more info.", + "anyOf": [ + { + "actions": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "checks": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "contents": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "deployments": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "discussions": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "issues": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "packages": { + "type": "string", + "enum": [ + "read" + ] + }, + "pages": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "pull_requests": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "repository_projects": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "statuses": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "workflows": { + "type": "string", + "enum": [ + "write" + ] + } + } + ], + "additionalProperties": false + } + } + }, + { + "properties": { + "permissions": { + "type": "string", + "enum": [ + "read-all", + "write-all" + ] + } + } + } + ], + "additionalProperties": false + } + }, + "additionalProperties": false } }, "additionalProperties": { @@ -1984,6 +2468,127 @@ } }, "additionalProperties": false + }, + "codespaces": { + "type": "object", + "properties": { + "repositories": { + "type": "object", + "description": "Configuration relative to a GitHub repository", + "pattern": "^[a-zA-Z0-9-_.]+[.]*/[a-zA-Z0-9-_*]+[.]*$", + "errorMessage": "Expected format: 'owner/repo' (eg: 'microsoft/vscode'). A wildcard (*) is permitted for the repo name. (eg: 'microsoft/*').", + "oneOf": [ + { + "properties": { + "permissions": { + "type": "object", + "description": "Addional repository permissions. See https://aka.ms/ghcs/multi-repo-auth for more info.", + "anyOf": [ + { + "actions": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "checks": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "contents": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "deployments": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "discussions": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "issues": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "packages": { + "type": "string", + "enum": [ + "read" + ] + }, + "pages": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "pull_requests": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "repository_projects": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "statuses": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "workflows": { + "type": "string", + "enum": [ + "write" + ] + } + } + ], + "additionalProperties": false + } + } + }, + { + "properties": { + "permissions": { + "type": "string", + "enum": [ + "read-all", + "write-all" + ] + } + } + } + ], + "additionalProperties": false + } + }, + "additionalProperties": false } }, "additionalProperties": { diff --git a/extensions/configuration-editing/schemas/devContainer.schema.src.json b/extensions/configuration-editing/schemas/devContainer.schema.src.json index b0e5b5c6f4a..db0c3822e7c 100644 --- a/extensions/configuration-editing/schemas/devContainer.schema.src.json +++ b/extensions/configuration-editing/schemas/devContainer.schema.src.json @@ -331,6 +331,124 @@ "description": "The port VS Code can use to connect to its backend." } } + }, + "codespaces": { + "type": "object", + "properties": { + "repositories": { + "type": "object", + "description": "Configuration relative to a GitHub repository", + "pattern": "^[a-zA-Z0-9-_.]+[.]*\/[a-zA-Z0-9-_*]+[.]*$", + "errorMessage": "Expected format: 'owner/repo' (eg: 'microsoft/vscode'). A wildcard (*) is permitted for the repo name. (eg: 'microsoft/*').", + "oneOf": [ + { + "properties": { + "permissions": { + "type": "object", + "description": "Addional repository permissions. See https://aka.ms/ghcs/multi-repo-auth for more info.", + "anyOf": [ + { + "actions": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "checks": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "contents": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "deployments": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "discussions": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "issues": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "packages": { + "type": "string", + "enum": [ + "read" + ] + }, + "pages": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "pull_requests": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "repository_projects": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "statuses": { + "type": "string", + "enum": [ + "read", + "write" + ] + }, + "workflows": { + "type": "string", + "enum": [ + "write" + ] + } + } + ] + } + } + }, + { + "properties": { + "permissions": { + "type": "string", + "enum": [ + "read-all", + "write-all" + ] + } + } + } + ] + } + } } }, "additionalProperties": { |