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.
| Repository | Needs |
|---|---|
| Private, on GitHub | Your own GitHub App, installed on that repository, and a sign-in (Connect GitHub) |
| Private, on GitLab or Bitbucket | Your own OAuth application and a sign-in with that host |
| Any public repository on GitHub | Nothing: no app and no sign-in |
How do I scan a branch?
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.Pick the branch and scan
The scan runs in the background, with a progress window at the bottom right. You can keep working.
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.

Pre-Merge, after one scan.
On a running engine, as you (after tomosu login <host> --engine URL):
tomosu scans start --github acme/shop --branch feature/refunds --engine http://localhost:7600
tomosu scans start --gitlab group/app --branch feature/x --engine http://localhost:7600
tomosu scans start --github owner/name --public --engine http://localhost:7600 # any public repository
scans start waits for the result; add --no-wait to return at once. Without an engine, the same scan runs on your computer:
tomosu scan --github acme/shop --branch feature/refunds # after tomosu login github
tomosu scan --github owner/name --public # any public repository
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.