Github API - Test Config

GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}
repos
code-scanning

Gets a CodeQL database for a language in a repository.

By default this endpoint returns JSON metadata about the CodeQL database. To
download the CodeQL database binary content, set the Accept header of the request
to application/zip, and make sure
your HTTP client is configured to follow redirects or use the Location header
to make a second request to get the redirect URL.

For private repositories, you must use an access token with the security_events scope.
For public repositories, you can use tokens with the security_events or public_repo scope.
GitHub Apps must have the contents read permission to use this endpoint.
Get a CodeQL database for a repository

Arguments
key owner

owner [scalar]

The account owner of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key repo

repo [scalar]

The name of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

language string

string [scalar]

The OpenAPI string type

API:
Github Open API
(version: 1.1.4)

Returns
200 application/json code-scanning-codeql-database

code-scanning-codeql-database [object]

A CodeQL database.

Attributes
content_type string

The MIME type of the CodeQL database file.

created_at string

The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.

id integer

The ID of the CodeQL database.

language string

The language of the CodeQL database.

name string

The name of the CodeQL database.

size integer

The size of the CodeQL database file in bytes.

updated_at string

The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.

uploader simple-user

url string

The URL at which to download the CodeQL database. The Accept header must be set to the value of the content_type property.

API:
Github Open API
(version: 1.1.4)
302 found

found [scalar]

Found

API:
Github Open API
(version: 1.1.4)
403 code_scanning_forbidden_read

code_scanning_forbidden_read [scalar]

Response if GitHub Advanced Security is not enabled for this repository

API:
Github Open API
(version: 1.1.4)
404 not_found

not_found [scalar]

Resource not found

API:
Github Open API
(version: 1.1.4)
503 service_unavailable

service_unavailable [scalar]

Service unavailable

API:
Github Open API
(version: 1.1.4)
API:
Github Open API
(version: 1.1.4)