From b6a8f9fc7f63c76cb49670355b223ce638a36e19 Mon Sep 17 00:00:00 2001 From: Josh Spicer Date: Mon, 30 May 2022 11:55:18 -0400 Subject: Add customizations.codespaces.repositories.permissions (#150555) --- .../schemas/devContainer.schema.generated.json | 605 +++++++++++++++++++++ .../schemas/devContainer.schema.src.json | 118 ++++ 2 files changed, 723 insertions(+) (limited to 'extensions') 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": { -- cgit v1.2.3