Get the status of an autofix for a code scanning alert
Gets the status and description of an autofix for a code scanning alert on the repository’s default branch.
OAuth 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.
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.
The security alert number.
The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
Responses
Section titled “ Responses ”Response
object
The status of an autofix.
The description of an autofix.
The start time of an autofix in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Examples
{ "status": "success", "description": "This fixes an XSS vulnerability by escaping the user input.", "started_at": "2024-02-14T12:29:18Z"}Bad Request
Basic Error
object
Examples
{ "message": "The alert_number is not valid", "documentation_url": "https://docs.github.com/rest/code-scanning/code-scanning#get-the-status-of-an-autofix-for-a-code-scanning-alert", "status": "400"}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"}Internal Error
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}