|
33314 | 33314 | "/repos/{owner}/{repo}/code-scanning/codeql/databases": {
|
33315 | 33315 | "get": {
|
33316 | 33316 | "summary": "List CodeQL databases for a repository",
|
33317 |
| - "description": "Lists the CodeQL databases that are available in a repository.\n\nOAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.", |
| 33317 | + "description": "Lists the CodeQL databases that are available in a repository.\n\nOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.", |
33318 | 33318 | "tags": [
|
33319 | 33319 | "code-scanning"
|
33320 | 33320 | ],
|
|
33374 | 33374 | "/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}": {
|
33375 | 33375 | "get": {
|
33376 | 33376 | "summary": "Get a CodeQL database for a repository",
|
33377 |
| - "description": "Gets a CodeQL database for a language in a repository.\n\nBy default this endpoint returns JSON metadata about the CodeQL database. To\ndownload the CodeQL database binary content, set the `Accept` header of the request\nto [`application/zip`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types), and make sure\nyour HTTP client is configured to follow redirects or use the `Location` header\nto make a second request to get the redirect URL.\n\nOAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.", |
| 33377 | + "description": "Gets a CodeQL database for a language in a repository.\n\nBy default this endpoint returns JSON metadata about the CodeQL database. To\ndownload the CodeQL database binary content, set the `Accept` header of the request\nto [`application/zip`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types), and make sure\nyour HTTP client is configured to follow redirects or use the `Location` header\nto make a second request to get the redirect URL.\n\nOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.", |
33378 | 33378 | "tags": [
|
33379 | 33379 | "code-scanning"
|
33380 | 33380 | ],
|
|
33434 | 33434 | "enabledForGitHubApps": true,
|
33435 | 33435 | "previews": [
|
33436 | 33436 |
|
| 33437 | + ], |
| 33438 | + "category": "code-scanning", |
| 33439 | + "subcategory": "code-scanning" |
| 33440 | + } |
| 33441 | + }, |
| 33442 | + "delete": { |
| 33443 | + "summary": "Delete a CodeQL database", |
| 33444 | + "description": "Deletes a CodeQL database for a language in a repository.\n\nOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.", |
| 33445 | + "tags": [ |
| 33446 | + "code-scanning" |
| 33447 | + ], |
| 33448 | + "operationId": "code-scanning/delete-codeql-database", |
| 33449 | + "externalDocs": { |
| 33450 | + "description": "API method documentation", |
| 33451 | + "url": "https://docs.github.com/rest/code-scanning/code-scanning#delete-a-codeql-database" |
| 33452 | + }, |
| 33453 | + "parameters": [ |
| 33454 | + { |
| 33455 | + "$ref": "#/components/parameters/owner" |
| 33456 | + }, |
| 33457 | + { |
| 33458 | + "$ref": "#/components/parameters/repo" |
| 33459 | + }, |
| 33460 | + { |
| 33461 | + "name": "language", |
| 33462 | + "in": "path", |
| 33463 | + "description": "The language of the CodeQL database.", |
| 33464 | + "schema": { |
| 33465 | + "type": "string" |
| 33466 | + }, |
| 33467 | + "required": true |
| 33468 | + } |
| 33469 | + ], |
| 33470 | + "responses": { |
| 33471 | + "204": { |
| 33472 | + "description": "Response" |
| 33473 | + }, |
| 33474 | + "403": { |
| 33475 | + "$ref": "#/components/responses/code_scanning_forbidden_write" |
| 33476 | + }, |
| 33477 | + "404": { |
| 33478 | + "$ref": "#/components/responses/not_found" |
| 33479 | + }, |
| 33480 | + "503": { |
| 33481 | + "$ref": "#/components/responses/service_unavailable" |
| 33482 | + } |
| 33483 | + }, |
| 33484 | + "x-github": { |
| 33485 | + "githubCloudOnly": false, |
| 33486 | + "enabledForGitHubApps": true, |
| 33487 | + "previews": [ |
| 33488 | + |
33437 | 33489 | ],
|
33438 | 33490 | "category": "code-scanning",
|
33439 | 33491 | "subcategory": "code-scanning"
|
|
0 commit comments