# Repository context scans

How reading each repository's setup and configuration files helps reviews judge a change, and how to turn the scans on or off.

A repository context scan reads a repository's setup and configuration files, so reviews judge a change knowing how the project is built. For example, a value that looks risky in one file may already be checked by the framework the project uses.

The scan needs GitHub, GitLab or Bitbucket connected. Repositories excluded from review are never scanned.

## What is read and kept

The scan reads a small set of setup, configuration and security files, never the whole repository, secret files or installed packages. From them it keeps a short list of facts, each citing the file it came from: the framework, where authentication is enforced, validation helpers and the rules the project states for itself. The code itself is not kept, and is never used for training.

## See what was read

Open a repository on **Repositories**. **Coverage** shows the facts LeoPrevent took from the repository's files, each with the file it came from.

## Turn it on or off

Owners and Admins switch scans in **Controls** with **Repository context scans**, for the whole organisation, a group, a workspace or a single repository. Turning them off deletes the facts within the time set out in the [Privacy notice](https://leotrace.io/privacy/).

Source: https://help.leotrace.io/repository-context-scans/ (updated 2026-11-19)
