# GitHub issues from a scanner

Scanner findings filed as GitHub issues are judged in the files your agent changes, and agreed false positives are closed with a comment.

Some scanners, such as one run from a GitHub Actions workflow, file their findings as GitHub issues instead of in a dashboard. LeoPrevent treats those issues like any other scanner's findings: it judges the open ones 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 > GitHub issues**.

For issues in files no agent is working on, a [sweep](https://help.leotrace.io/sweep-a-scanner-backlog/) does the same for the whole backlog, when you ask for it.

Available once [GitHub is connected](https://help.leotrace.io/github/). There is nothing else to turn on.

## Before you start

The LeoPrevent GitHub App needs read and write on **Issues**: read to judge the issues, write to close the ones you agree are false positives. A GitHub organisation owner approves it. Until they do, LeoPrevent reads no issues.

## Which issues are read

- **Issues opened by a bot.** A scanner opens its issues as a bot account, so issues people open, such as feature requests, are left alone. A sweep can read issues by a label or an author instead, for example `/leoprevent:sweep github-issues label semgrep`.
- **Issues that point at code.** An issue needs a file and line: a link to the file in the repository, a `path:line`, or a path with a `Line:` field. An issue that names several places is judged at each one. Issues with no place are counted, not judged.
- **Open issues only**, in repositories the app can see. Archived repositories are skipped.

The severity comes from a `Severity:` field or a label, and is medium when there is neither.

## What happens to false positives

A confirmed false positive is closed on GitHub as not planned, with a comment giving LeoPrevent's verdict and, when the agent agreed, its reasoning. The comment never names the person who confirmed it. On a public repository, that comment is public.

With [Auto ignore false positives](https://help.leotrace.io/auto-ignore-false-positives/) on, an issue the agent confirms is closed for you; otherwise a Member, Admin or Owner confirms it in **Security tools > GitHub issues**. An issue that names several places is never closed automatically, because one place being a false positive says nothing about the others. Select **Undo** to reopen an issue.

LeoPrevent writes nothing else to your issues.

## Stop reading issues

There is no separate switch. To stop LeoPrevent reading a repository's issues, remove that repository from the LeoPrevent app on GitHub, which also stops the app's other features there.

Source: https://help.leotrace.io/github-issues/ (updated 2026-11-19)
