Skip to content
Analyze

Repositories and access

Which repositories Brunel can read, how it reads them, the size limits, and how private repositories work with a separate GitHub authorization or the Brunel GitHub App.

Accepted addresses

Brunel reads GitHub repositories. Paste any of these forms:

FormExample
Repository URLhttps://github.com/acme/shop
Branch or taghttps://github.com/acme/shop/tree/release-2
SSH addressgit@github.com:acme/shop.git
Shorthandacme/shop

Other hosts are refused with "Only GitHub repositories are supported for now."

How a repository is read

  1. Brunel downloads the archive of the requested branch (the default branch otherwise) from GitHub, read-only.
  2. The archive is streamed and filtered: only code and configuration files are kept. Media, binaries, dumps and any file larger than 2 MB are skipped, because no detector needs them.
  3. Paths are checked while extracting: entries with .., absolute paths or links outside the folder are rejected.
  4. Detectors and the security check read the kept files. Nothing is installed, built or executed.
  5. The temporary folder is deleted. Brunel keeps the facts, short secret-free excerpts, the security findings and the analysis.

Limits

LimitValue
Code and configuration kept150 MB
Files kept20,000
Largest file read2 MB
Whole archive streamed4 GB, 400,000 entries
Download time120 seconds

Repositories above these limits answer too_large or too_many_files. Large monorepos usually stay well under them, because history and assets are not counted.

Public repositories

Anyone can analyze a public repository, with or without an account. Guests are limited to a few analyses per hour per address.

Private repositories

Private repositories need a signed-in account whose plan includes them (Pro and above). Brunel reads them in one of two ways:

  • Your authorization of your GitHub repositories. Signing in only asks GitHub who you are (read:user, read:org): it gives no access to private code. Access is a separate consent, given from Settings → Sign-in methods → Authorize GitHub repositories (GitHub's repo and workflow scopes). From the console it takes two steps: the button opens Brunel's sign-in domain, where you confirm, then GitHub. Brunel keeps that GitHub token sealed on the server (AES-256-GCM, bound to your account), never sends it to the browser or to the AI, and revokes the grant on GitHub when you delete your account.
  • The Brunel GitHub App. An organization installs it once and chooses the repositories. Brunel then reads them with a short-lived token scoped to one repository and one purpose (contents: read to download, pull_requests: write to comment), and comments on pull requests as brunel[bot].

To install the app for an organization, choose Missing an organization? in the repository picker, or open the installation page it links to. An organization owner picks the repositories. The app is optional: a Brunel where it is not enabled reads private repositories through your authorization only. At the time of writing (November 2026) it is not enabled on brunel.cloud.

When GitHub withdraws the access

GitHub can withdraw the access you authorized. Brunel then says so instead of a status code: "GitHub refused the repository access Brunel holds for your account". Authorize your repositories again from Settings → Sign-in methods; the page shows the date of the last authorization. A public repository is still read without it, and an API key follows the authorization of its account.

On Pro and above, a project on a public repository can be shared with a read-only link (128-bit token, revocable at any time). Projects on private repositories cannot be shared by link; share them with your team instead.

Repositories and access · Brunel Docs