Skip to main content

Open an AI-written fix pull request for a finding

POST 

/v1/organizations/:org/code/ai-fixes

Sends the finding (rule, message, lines) and the one file it is in, read through the GitHub App at the default branch (it must be unchanged since the scan), to the AI provider (Claude, on Amazon Bedrock or the Claude API; settings name which), which proposes a minimal change. The same scanner (Opengrep for code, Trivy for infrastructure as code) checks the patched file: only a change that removes the finding and adds no other is opened, as a pull request labelled AI-generated, for human review. Listed with the other fix pull requests (kind code or iac). Needs AI fixes turned on for the organization, fix pull requests on for the connection and the App's write access. 412 ai_fixes_not_set_up when the server has no AI provider, ai_fixes_off, fix_prs_off, github_permissions, ai_fix_limit when the organization's daily limit is reached.

Request​

Responses​

Queued (or the fix already under way or open)