> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindfort.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub integration

> Connect GitHub to MindFort to run white-box assessments on your source code, open patch pull requests, and track findings as GitHub issues.

GitHub integration connects your source repositories to MindFort. Once connected, you can run white-box assessments, generate patch pull requests for findings, and create GitHub issues from findings.

## Connect

1. Go to **Settings > Integrations**.
2. Click **Connect** on the GitHub card.
3. Install the MindFort GitHub App and select the repositories you want to grant access to.

## Configure

Click **Configure** on the connected GitHub card to open your GitHub App installation settings, where you can add or remove repository access.

## Link repositories to targets

White-box assessments, patching, and GitHub Issues all work through the repositories linked to a target. Open the target in **Target Inventory** and add the repository under **Associated Code Repositories**. See [Link source repositories](https://docs.mindfort.ai/guides/targets.md#link-source-repositories).

## White-box assessments

A white-box assessment includes source-code analysis alongside testing of the live target. After you link a repository to the target, choose **White-Box** when you start an assessment. See [Assessments](https://docs.mindfort.ai/guides/assessments.md).

## Patching

**Patch** is available from the findings of a target with a linked repository. Choose a linked repository and base branch to create a pull request with a proposed fix. See [Patching](https://docs.mindfort.ai/guides/patching.md) for full details.

## GitHub Issues

Use GitHub Issues as your ticket integration to create issues from findings and sync issue status back to MindFort.

### Turn on GitHub Issues

On the connected GitHub card, turn on **Ticket provider**.

If MindFort does not yet have permission to manage issues, the card asks you to approve it. Click **Review permissions on GitHub**, approve the request, then turn on **Ticket provider** again.

An organization can use only one ticket integration at a time. Disconnect Linear or Jira before you turn on GitHub Issues, and turn off **Ticket provider** before you connect Linear or Jira.

### Repository requirements

MindFort creates each issue in a repository linked to the finding's target. The repository must:

* be linked to the target
* be private. MindFort does not create security issues in public repositories.
* have Issues turned on
* be included in the MindFort GitHub App's repository access

### Usage

Open any finding and click **Create GitHub Issue** to push the finding details to GitHub. If the target has more than one linked repository, select the repository for the issue. Once an issue exists, the button changes to a link that shows the issue number and its current state.

### Finding status synchronization

Closing or reopening the GitHub issue updates the linked finding:

| GitHub issue | Linked finding |
| - | - |
| Closed as completed | Resolved |
| Closed as not planned or duplicate | Resolved as **Won't Fix** |
| Reopened | Reopened so your team can resume triage |

If automatic retesting is configured, an eligible resolution can queue validation. A closed issue is not proof that a deployed vulnerability is fixed; review the [retest result](https://docs.mindfort.ai/guides/retesting.md).

## Security reviews

GitHub also supports [Security Reviewer](https://docs.mindfort.ai/guides/security-reviewer.md) for automatic pull request security reviews. When the feature is enabled, configure repositories from **Security Reviewer** and inspect review results there.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.