GitHub code scanning
Open GitHub code scanning alerts in the files your agent changes are judged on every turn, so real ones get fixed.
With GitHub code scanning on, LeoPrevent judges the open code scanning alerts in the files your agent changes, on every turn. Real ones go to the agent as existing flaws, to fix in the same change when that is safe. Likely false positives are confirmed with the agent and listed in Security tools for you to dismiss in GitHub.
For alerts in files no agent is working on, a sweep does the same for the whole backlog, when you ask for it.
Available once GitHub is connected. Admins and Owners turn it on.
Turn it on#
- Open Integrations and select GitHub.
- Under Code scanning alerts, turn on Use GitHub code scanning.
- Select Save.
Check it worked#
The GitHub drawer shows one status under Code scanning alerts:
| Status | Meaning |
|---|---|
| Checked and dismissed | Alerts are judged on every turn, and agreed false positives are dismissed in GitHub. |
| Checked, not dismissed | Alerts are judged, but cannot be dismissed yet. Select Review permissions on GitHub and approve read and write. |
| Not approved yet | A GitHub organisation owner needs to approve the permission. Until then, alerts are left alone. |
What happens to false positives#
A confirmed false positive is dismissed in GitHub as a false positive, with LeoPrevent's reason. With Auto ignore false positives on, one the agent confirms is dismissed for you; otherwise a Member, Admin or Owner confirms it in Security tools > GitHub. You can reopen it in GitHub, or select Undo.
Turn it off#
Turn off Use GitHub code scanning in the GitHub drawer and select Save. Reviews and sweeps stop checking your alerts.