Skip to content

Commit 5f6f56b

Browse files
Add info about Autofix API (#53664)
Co-authored-by: Hana Harencarova <[email protected]> Co-authored-by: Sophie <[email protected]>
1 parent d5f4a29 commit 5f6f56b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

content/code-security/code-scanning/managing-code-scanning-alerts/resolving-code-scanning-alerts.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ With a {% data variables.product.prodname_copilot_enterprise %} license, you can
4848
1. Once the suggested fix has been generated, at the bottom of the page, you can click **Create PR with fix** to automatically generate a pull request with the suggested fix.
4949
A new branch is created from the default branch, the generated fix is committed and a draft pull request is created. You can test and edit the suggested fix as you would with any other fix.
5050

51-
For information about the limitations of automatically generated fixes, see "[Limitations of suggestions](/code-security/code-scanning/managing-code-scanning-alerts/about-autofix-for-codeql-code-scanning#limitations-of-suggestions)
51+
You can also use the Autofix API for historical alerts endpoints to generate, get, and commit suggested fixes.
52+
53+
* [Create an autofix for a code scanning alert](/rest/code-scanning/code-scanning#create-an-autofix-for-a-code-scanning-alert)
54+
* [Get the status of an autofix for a code scanning alert](/rest/code-scanning/code-scanning#get-the-status-of-an-autofix-for-a-code-scanning-alert)
55+
* [Commit an autofix for a code scanning alert](/rest/code-scanning/code-scanning#commit-an-autofix-for-a-code-scanning-alert)
56+
57+
For information about the limitations of automatically generated fixes, see [Limitations of suggestions](/code-security/code-scanning/managing-code-scanning-alerts/about-autofix-for-codeql-code-scanning#limitations-of-suggestions).
5258

5359
{% endif %}
5460

0 commit comments

Comments
 (0)