Product
Platform overview Tomosu engine (open source) Tomosu Cloud Reliability rules
Solutions
Prevent outages before merge Reliability Radar Fix safety For developers For SRE and platform teams
Developers
Quickstart Documentation Contribute a rule
Resources
Blog Case studies Learn FAQ News
Company
Pricing About Contact Join the Waitlist
Theme

Scan a branch or a repository

The engine can scan a branch you have not checked out. It downloads the branch into a temporary folder, scans it, deletes it and keeps only the findings. Private repositories need a sign-in with your code host; public repositories need nothing.

  • Console: Pre-Merge
  • tomosu scans start
  • Public repositories: no sign-in
  • Updated

What does a branch scan do?

A branch scan checks code you have not checked out. The engine downloads the branch into a temporary folder on its own machine, scans it, deletes the folder and keeps only the findings. Findings from a branch scan are tagged with the branch, and are never joined with production signals.

RepositoryNeeds
Private, on GitHubYour own GitHub App, installed on that repository, and a sign-in (Connect GitHub)
Private, on GitLab or BitbucketYour own OAuth application and a sign-in with that host
Any public repository on GitHubNothing: no app and no sign-in

How do I scan a branch?

  1. Open Pre-Merge

    Signed in, you see your repositories under Scan a branch of your repositories. For a public repository, type owner/name (or paste its GitHub address) under Scan a public repository and press Show branches.

  2. Pick the branch and scan

    The scan runs in the background, with a progress window at the bottom right. You can keep working.

  3. Read the results

    Each scanned branch is a row under Scanned branches: when, by whom, how many files, findings by severity, and what Tomosu Agent did. View opens its findings; Report opens the PDF.

    The Pre-Merge page: Connect GitHub to scan your own repositories, a scanned branch demo/shop at main with its findings by severity, Report and View buttons, and a form to scan a public repository.
    Pre-Merge, after one scan.

How do I list or remove scanned branches?

tomosu scans list --engine http://localhost:7600
tomosu scans forget --id s-323c0223d8d9 --engine http://localhost:7600
tomosu scans forget --repo acme/shop --branch feature/refunds --engine http://localhost:7600
tomosu scans forget --repo acme/shop --all-branches --engine http://localhost:7600

In the console, the × on a row removes it, and the circular arrow scans the branch again.

What happens when I accept a finding from a branch scan?

Accept opens a pull request into that branch, not the default branch, as the person who accepted it. See Accept or reject a fix.

Code from a branch scan is deleted as soon as the scan ends. Only the findings are kept, and they appear in Findings with the branch name.