For a finding, Anitu can generate a proposed code change that addresses it. You decide what happens to it: download the patch, or publish it to your repository as a draft for review. Anitu never merges a change.

Generate a fix

  1. Open a finding in Findings.
  2. Select Generate code fix.
  3. When the fix is ready, review the patch and its validation status.
Generating a fix uses your plan allowance.

Validation status

Every generated fix is checked before you see it. The status tells you how far:
Draft: confirm which status customers currently get. At the time of writing, generated fixes are structurally checked only.

Use the fix

  • Download patch gives you a patch file to apply yourself.
  • Publish draft PR opens a draft pull request on GitHub, or a draft merge request on GitLab, containing the fix. It needs write access to the repository: see Connect GitHub or Connect GitLab.
Publishing is confirmed only once the draft is open; the link appears on the fix when it is. A draft pull request is not a merge and not a deployment.

Fixes for a whole repository

From Vulnerability Management, Start code-fix review runs a fresh review aimed at producing fixes for a connected repository.
Draft: explain how a code-fix review differs from fixing findings one at a time.