Get a code scanning default setup configuration
Gets a code scanning default setup configuration.
OAuth 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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The account owner of the repository. The name is not case sensitive.
The name of the repository without the .git extension. The name is not case sensitive.
Responses
Section titled “ Responses ”Response
Configuration for code scanning default setup.
object
Code scanning default setup has been configured or not.
Languages to be analyzed.
Runner type to be used.
Runner label to be used if the runner type is labeled.
CodeQL query suite to be used.
Threat model to be used for code scanning analysis. Use remote to analyze only network sources and remote_and_local to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.
Timestamp of latest configuration update.
The frequency of the periodic analysis.
Examples
{ "state": "configured", "languages": [ "ruby", "python" ], "query_suite": "default", "threat_model": "remote", "updated_at": "2023-01-19T11:21:34Z", "schedule": "weekly"}Response if GitHub Advanced Security is not enabled for this repository
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Service unavailable
object
Example generated
{ "code": "example", "message": "example", "documentation_url": "example"}