Skip to main content

Overview

Patching lets you generate a pull request that addresses a finding, directly from MindFort. The platform analyzes the finding, writes a fix, and opens a PR against the repository and branch you select.

Prerequisites

  • A GitHub integration must be connected. Go to Settings > Integrations to set up the connection.

Create a Patch

  1. Open a finding from the Findings view.
  2. Click the Create Patch button in the finding actions bar.
  3. Select the repository that corresponds to the target.
  4. Select the base branch the PR should target.
  5. Click Create PR.
MindFort will begin generating the patch. While the patch is being created, the button shows a “Patching” status indicator. Once complete, a View PR link appears so you can review the changes on GitHub.

Review and Merge

After the PR is created:
  1. Review the proposed changes on GitHub.
  2. Run your CI/CD checks as usual.
  3. Merge when satisfied.
  1. Start with high- and critical-severity findings.
  2. Always review the generated PR before merging — treat it as a starting point.
  3. Re-run an assessment or retest after merging to confirm the finding is resolved.