How SetRepo handles your code

Last updated

SetRepo reads your code to scan it, keeps the findings, and deletes the code. This page says where the code goes during a scan, what stays afterwards, and what leaves our servers.

Where your code goes during a scan

A GitHub repo is cloned with a token GitHub issues for that one repo, read-only (contents: read), valid for at most an hour. SetRepo doesn't store that token. Public repos from GitHub, GitLab or Bitbucket are cloned without one.

  • The clone is shallow: the latest commit only. When the scan checks git history for secrets, it fetches up to 100 commits of the default branch.
  • No submodules, no git hooks, and symlinks are written as plain files. SetRepo doesn't run, build or install your code.
  • The code is checked out into a working folder for that scan on SetRepo's scan servers. A zip upload is unpacked the same way.

When it's deleted

  • The first pass, which detects your stack and estimates the scan, uses a temporary folder that's deleted when that step ends.
  • The scan's working folder is deleted when the scan finishes or fails.
  • A scan that stops making progress is ended automatically, after 45 minutes idle or 6 hours in total, and its folder is deleted then.
  • A zip upload is deleted when its scan ends. The one exception is a finished Quick scan of a zip: the zip is kept for up to 24 hours so you can upgrade it to a Deep scan without uploading again, then deleted by an hourly clean-up.

What is stored

Your source files are not stored. After a scan SetRepo keeps:

  • Findings: a title, severity, category, the file path and line numbers, a description, a suggested fix and, for some, how it could be exploited.
  • About the scan: the stack it detected, the commit it scanned, file counts, a content hash of each scanned file (so a rescan can tell what changed), and the list of server routes it found with the guards on each.
  • On Deep scans, the AI review's answers, kept for your account only, so unchanged code isn't reviewed and charged again.

Descriptions and fixes can quote a short piece of the code they're about. Secret values are replaced with [REDACTED] before any finding is saved, wherever they appear in it.

Encryption

  • Every connection to setrepo.com is HTTPS, with HSTS.
  • Passwords are stored as bcrypt hashes.
  • The one third-party credential SetRepo keeps, your GitHub refresh token, is encrypted with Fernet (AES-128-CBC with HMAC-SHA256) under a key only the API server has. Repo access tokens are created per clone and never stored.

Secrets SetRepo finds are never used

When a scan finds an API key, password or token, SetRepo reports where it is. It doesn't try the key against the service it belongs to, or use it in any way: there's no code in SetRepo that does.

The secret's value never makes it into a finding: the secret scanner's output is reduced to the file, the line and the kind of key before anything is saved, and the report shows it redacted. The scan tools reach the internet only through a proxy that allows two package-registry hosts, used to look up dependency versions.

What a Deep scan sends to Anthropic

A Deep scan adds an AI review of the access-control and business-logic code the checks flag, run on Anthropic's API. It doesn't send your repo. For each place the review needs to check, it sends:

  • the route handler (or the function around the line in question),
  • the functions that handler calls, one level deep, including ones imported from other files,
  • the definitions of the data models it touches,
  • for Supabase apps, the row-level security statements from your SQL migrations for the tables it uses,
  • up to 15 files that handle payments: whole when short, otherwise the parts around the payment code,
  • for critical or high findings from pattern checks that aren't sure of themselves, the code around the line they cite, so the review can confirm or clear them.

Secret values are redacted from everything before it's sent. Every line sent is recorded, so a finding the AI returns can be checked against the code it was actually shown.

A Quick scan uses no AI

A Quick scan runs only deterministic checks: SetRepo's own checks and open-source scanners (Gitleaks, Opengrep, Bandit, ESLint, OSV-Scanner, Trivy). It makes no calls to Anthropic or any other AI service, and none of your code leaves SetRepo's servers.

Deleting your account and data

In the dashboard, open Settings and choose Delete account. You type your account's email to confirm, and your password if the account has one.

  • Any subscription is canceled first. If Stripe can't cancel it, nothing is deleted and you're asked to try again, so you're never billed for an account that's gone.
  • Then your projects, scans, findings, uploads, saved AI review answers, domains and GitHub links are deleted together.
  • Afterwards SetRepo revokes its access on GitHub, deletes any kept zip uploads, refunds a paid scan that was still running, and emails you a confirmation.

Settings also has Export, which downloads your account's data as JSON.