diff --git a/src/github-apps/lib/config.json b/src/github-apps/lib/config.json index 9ba7363bb3..2e17de5464 100644 --- a/src/github-apps/lib/config.json +++ b/src/github-apps/lib/config.json @@ -60,5 +60,5 @@ "2022-11-28" ] }, - "sha": "66db9e217a32aaa0721b9c51c371e5a86c3beeb7" + "sha": "766b9223ff249ba0b09a4ebd16c9cabb44cc63a6" } \ No newline at end of file diff --git a/src/rest/data/fpt-2022-11-28/schema.json b/src/rest/data/fpt-2022-11-28/schema.json index 6920c9efd9..98369be6db 100644 --- a/src/rest/data/fpt-2022-11-28/schema.json +++ b/src/rest/data/fpt-2022-11-28/schema.json @@ -496760,6 +496760,7 @@ ], "description": "The products and respective version ranges affected by the advisory.", "items": { + "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.", "type": "object", "properties": { "package": { @@ -496813,7 +496814,7 @@ "string", "null" ], - "description": "The package version that resolve the vulnerability." + "description": "The package version that resolves the vulnerability." }, "vulnerable_functions": { "type": [ @@ -497412,6 +497413,7 @@ ], "description": "The products and respective version ranges affected by the advisory.", "items": { + "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.", "type": "object", "properties": { "package": { @@ -497465,7 +497467,7 @@ "string", "null" ], - "description": "The package version that resolve the vulnerability." + "description": "The package version that resolves the vulnerability." }, "vulnerable_functions": { "type": [ diff --git a/src/rest/data/ghec-2022-11-28/schema.json b/src/rest/data/ghec-2022-11-28/schema.json index f05e5a411f..ac257fe865 100644 --- a/src/rest/data/ghec-2022-11-28/schema.json +++ b/src/rest/data/ghec-2022-11-28/schema.json @@ -522580,6 +522580,7 @@ ], "description": "The products and respective version ranges affected by the advisory.", "items": { + "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.", "type": "object", "properties": { "package": { @@ -522633,7 +522634,7 @@ "string", "null" ], - "description": "The package version that resolve the vulnerability." + "description": "The package version that resolves the vulnerability." }, "vulnerable_functions": { "type": [ @@ -523232,6 +523233,7 @@ ], "description": "The products and respective version ranges affected by the advisory.", "items": { + "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.", "type": "object", "properties": { "package": { @@ -523285,7 +523287,7 @@ "string", "null" ], - "description": "The package version that resolve the vulnerability." + "description": "The package version that resolves the vulnerability." }, "vulnerable_functions": { "type": [ diff --git a/src/rest/data/ghes-3.11-2022-11-28/schema.json b/src/rest/data/ghes-3.11-2022-11-28/schema.json index 3e1a08d917..3e5063057c 100644 --- a/src/rest/data/ghes-3.11-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.11-2022-11-28/schema.json @@ -472284,6 +472284,7 @@ ], "description": "The products and respective version ranges affected by the advisory.", "items": { + "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.", "type": "object", "properties": { "package": { @@ -472337,7 +472338,7 @@ "string", "null" ], - "description": "The package version that resolve the vulnerability." + "description": "The package version that resolves the vulnerability." }, "vulnerable_functions": { "type": [ @@ -472936,6 +472937,7 @@ ], "description": "The products and respective version ranges affected by the advisory.", "items": { + "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.", "type": "object", "properties": { "package": { @@ -472989,7 +472991,7 @@ "string", "null" ], - "description": "The package version that resolve the vulnerability." + "description": "The package version that resolves the vulnerability." }, "vulnerable_functions": { "type": [ diff --git a/src/rest/data/ghes-3.12-2022-11-28/schema.json b/src/rest/data/ghes-3.12-2022-11-28/schema.json index 53dc0c4918..9c268e295f 100644 --- a/src/rest/data/ghes-3.12-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.12-2022-11-28/schema.json @@ -195921,6 +195921,306 @@ } ] }, + { + "serverUrl": "http(s)://HOSTNAME", + "verb": "get", + "requestPath": "/manage/v1/config/apply", + "title": "Get the status of a ghe-config-apply run", + "category": "enterprise-admin", + "subcategory": "manage-ghes", + "parameters": [ + { + "name": "run_id", + "description": "
The unique run ID of the ghe-config-apply run.
Response
", + "example": { + "running": true, + "successful": false, + "nodes": [ + { + "run_id": "d34db33f", + "hostname": "ghes-01.lan", + "running": true, + "successful": false + } + ] + }, + "schema": { + "type": "object", + "properties": { + "running": { + "type": "boolean", + "description": "Whether the ghe-config-apply run is still running in the environment" + }, + "successful": { + "type": "boolean", + "description": "Whether the ghe-config-apply run was successful in the environment" + }, + "nodes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "run_id": { + "type": "string", + "description": "The unique Run ID of the ghe-config-apply run on the host" + }, + "hostname": { + "type": "string", + "description": "The hostname of the node" + }, + "running": { + "type": "boolean", + "description": "Whether the ghe-config-apply run is still running on the host" + }, + "successful": { + "type": "boolean", + "description": "Whether the ghe-config-apply run was successful on the host" + } + } + } + } + } + } + } + } + ], + "previews": [], + "descriptionHTML": "Displays the current status of ghe-config-apply in the environment or the status of a historical run by ID.
OK
" + }, + { + "httpStatusCode": "400", + "description": "Bad request
" + }, + { + "httpStatusCode": "401", + "description": "Unauthorized
" + } + ] + }, + { + "serverUrl": "http(s)://HOSTNAME", + "verb": "post", + "requestPath": "/manage/v1/config/apply", + "title": "Trigger a ghe-config-apply run", + "category": "enterprise-admin", + "subcategory": "manage-ghes", + "parameters": [], + "bodyParameters": [ + { + "type": "string", + "name": "run_id", + "in": "body", + "description": "The run ID to execute ghe-config-apply with. If not provided, a run ID will be generated randomly.
Response
", + "example": { + "run_id": "d34db33f" + }, + "schema": { + "type": "object", + "properties": { + "run_id": { + "type": "string", + "description": "Run ID the job was launched with" + } + } + } + } + } + ], + "previews": [], + "descriptionHTML": "Triggers a run of ghe-config-apply from the ghes-manage agent on your Nomad Delegate instance.\nYou can provide a run ID or allow one to be generated randomly.
OK
" + }, + { + "httpStatusCode": "400", + "description": "Bad request
" + }, + { + "httpStatusCode": "401", + "description": "Unauthorized
" + } + ] + }, + { + "serverUrl": "http(s)://HOSTNAME", + "verb": "get", + "requestPath": "/manage/v1/config/apply/events", + "title": "List events from ghe-config-apply", + "category": "enterprise-admin", + "subcategory": "manage-ghes", + "parameters": [ + { + "name": "last_request_id", + "description": "The unique ID of the last response from a host, used for pagination.
", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [], + "enabledForGitHubApps": false, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json" + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": { + "nodes": [ + { + "node": "ghes-01.lan", + "last_request_id": "387cd628c06d606700e79be368e5e574:0cde553750689c76:0000000000000000", + "events": [ + { + "timestamp": "2023-01-01T13:00:00+00:00", + "severity_text": "INFO", + "body": "Validating services", + "event_name": "Enterprise::ConfigApply::PhaseValidation#config_phase_validation", + "topology": "multinode", + "hostname": "ghes-01.lan", + "config_run_id": "d34db33f", + "trace_id": "387cd628c06d606700e79be368e5e574", + "span_id": "0cde553750689c76", + "span_parent_id": 0, + "span_depth": 0 + } + ] + } + ] + }, + "schema": { + "type": "object", + "properties": { + "nodes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "node": { + "type": "string", + "description": "Hostname of the node" + }, + "last_request_id": { + "type": "string", + "description": "Unique ID of the last response from a host used for pagination" + }, + "events": { + "type": "array", + "items": { + "type": "object", + "properties": { + "timestamp": { + "type": "string" + }, + "severity_text": { + "type": "string" + }, + "body": { + "type": "string" + }, + "event_name": { + "type": "string" + }, + "topology": { + "type": "string" + }, + "hostname": { + "type": "string" + }, + "config_run_id": { + "type": "string" + }, + "trace_id": { + "type": "string" + }, + "span_id": { + "type": "string" + }, + "span_parent_id": { + "type": "string" + }, + "span_depth": { + "type": "integer" + } + } + } + } + } + } + } + } + } + } + } + ], + "previews": [], + "descriptionHTML": "Lists events from an in-process ghe-config-apply run on your Github Enterprise Server instance.
OK
" + }, + { + "httpStatusCode": "400", + "description": "Bad request
" + }, + { + "httpStatusCode": "401", + "description": "Unauthorized
" + } + ] + }, { "serverUrl": "http(s)://HOSTNAME", "verb": "post", @@ -475469,6 +475769,7 @@ ], "description": "The products and respective version ranges affected by the advisory.", "items": { + "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.", "type": "object", "properties": { "package": { @@ -475522,7 +475823,7 @@ "string", "null" ], - "description": "The package version that resolve the vulnerability." + "description": "The package version that resolves the vulnerability." }, "vulnerable_functions": { "type": [ @@ -476121,6 +476422,7 @@ ], "description": "The products and respective version ranges affected by the advisory.", "items": { + "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.", "type": "object", "properties": { "package": { @@ -476174,7 +476476,7 @@ "string", "null" ], - "description": "The package version that resolve the vulnerability." + "description": "The package version that resolves the vulnerability." }, "vulnerable_functions": { "type": [ diff --git a/src/rest/lib/config.json b/src/rest/lib/config.json index aa54b6cac8..23cd4f0e28 100644 --- a/src/rest/lib/config.json +++ b/src/rest/lib/config.json @@ -44,5 +44,5 @@ ] } }, - "sha": "66db9e217a32aaa0721b9c51c371e5a86c3beeb7" + "sha": "766b9223ff249ba0b09a4ebd16c9cabb44cc63a6" } \ No newline at end of file diff --git a/src/webhooks/lib/config.json b/src/webhooks/lib/config.json index 4e34497498..31c4a6b53b 100644 --- a/src/webhooks/lib/config.json +++ b/src/webhooks/lib/config.json @@ -1,3 +1,3 @@ { - "sha": "66db9e217a32aaa0721b9c51c371e5a86c3beeb7" + "sha": "766b9223ff249ba0b09a4ebd16c9cabb44cc63a6" } \ No newline at end of file