From 5f0dd145b751fcd4322a09f708efcadd79f5834d Mon Sep 17 00:00:00 2001 From: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com> Date: Wed, 2 Dec 2020 10:31:14 -0500 Subject: [PATCH] Updating OpenAPI descriptions (#16712) --- lib/rest/static/decorated/api.github.com.json | 10 ++++++++++ lib/rest/static/decorated/ghes-2.22.json | 10 ++++++++++ lib/rest/static/dereferenced/api.github.com.deref.json | 6 ++++++ lib/rest/static/dereferenced/ghes-2.22.deref.json | 6 ++++++ 4 files changed, 32 insertions(+) diff --git a/lib/rest/static/decorated/api.github.com.json b/lib/rest/static/decorated/api.github.com.json index f3b8e64d3c..7bd8b5f434 100644 --- a/lib/rest/static/decorated/api.github.com.json +++ b/lib/rest/static/decorated/api.github.com.json @@ -41282,6 +41282,11 @@ "httpStatusMessage": "Accepted", "description": "Response" }, + { + "httpStatusCode": "400", + "httpStatusMessage": "Bad Request", + "description": "Response if the sarif field is invalid" + }, { "httpStatusCode": "403", "httpStatusMessage": "Forbidden", @@ -41291,6 +41296,11 @@ "httpStatusCode": "404", "httpStatusMessage": "Not Found", "description": "Response if commit sha or ref cannot be found" + }, + { + "httpStatusCode": "413", + "httpStatusMessage": "Payload Too Large", + "description": "Response if the sarif field is too large" } ], "descriptionHTML": "
Upload a SARIF file containing the results of a code scanning analysis to make the results available in a repository.\nFor private repos, you must use an access token with the repo scope. For public repos, you must use an access token with public_repo and repo:security_events scopes. GitHub Apps must have the security_events write permission to use this endpoint.
Upload a SARIF file containing the results of a code scanning analysis to make the results available in a repository.\nFor private repos, you must use an access token with the repo scope. For public repos, you must use an access token with public_repo and repo:security_events scopes. GitHub Apps must have the security_events write permission to use this endpoint.