Providing your code

The ways to give Codeego the code to analyse: a GitHub repository through the GitHub App, a Git URL, or a ZIP archive. The page also covers size limits and what to leave out of an archive.

An assessment analyses one snapshot of source code. You choose the source on the New Assessment page, in the Source Code card. Select one of the three source buttons to open the Choose source dialog, pick the code, then select Use this source. The card then shows a summary of the chosen source and a Change button.

GitHub Repos
One or more repositories from your GitHub account or organisation, read through the Codeego GitHub App. Works for private and public repositories.
Manual URL
The address of a Git repository and a branch name. Intended for public repositories on GitHub, GitLab or Bitbucket.
Upload ZIP
A ZIP archive of the code, uploaded from your browser. Password-protected archives are accepted.

Members of an Enterprise organisation have two further options: asking someone outside the organisation to share their code (see Requesting code from someone else), and running the analysis from their own machine with the command-line tool (see Enterprise CLI). With the CLI the repository is not uploaded or cloned.

GitHub repositories#

The GitHub Repos tab uses the Codeego GitHub App. The app has read-only access, and only to the repositories you or your organisation's GitHub administrator choose when installing it. Codeego cannot push, open pull requests or change settings. For the permissions and how to remove the app, see The GitHub App.

  1. In the GitHub Repos tab, select Connect. GitHub asks you to authorise Codeego and to choose the account or organisation and repositories to install the app on.
  2. After GitHub returns you to Codeego, the tab shows your GitHub login with a Connected badge and the text Read-only access.
  3. Search the repository list and tick each repository to include. The list shows whether a repository is Private or Public, its main language, size and last update.
  4. For each ticked repository, choose the branch from the branch selector. It defaults to the repository's default branch.
  5. Select Use this source.

If a repository is missing from the list, the app is not installed on it. Select Add repositories on GitHub to change the installation, then return to the dialog. If the tab shows GitHub access is now read-only. Reconnect to continue., your connection predates the read-only app; select Reconnect.

Several repositories in one assessment

You can tick more than one repository, each with its own branch. The selection summary shows the number of repositories and their combined size. All selected repositories are analysed together as one codebase and produce one set of scores, one report and one certificate. Use this when a product is split across repositories, for example a frontend, a backend and shared libraries.

Which commit is analysed

Codeego analyses the latest commit on the chosen branch at the moment the code is copied, not at the moment you create the assessment. The identifier (SHA) of that commit is recorded with the assessment and printed on the Evidence Certificate as the artifact identifier. If you need a particular state of the code to be assessed, avoid pushing to the branch until the status reaches Analyzing codebase, or create a dedicated branch that points at that state.

Git URL without the GitHub App#

The Manual URL tab takes a Repository URL (for example https://github.com/owner/repository) and a Branch (default main). Codeego clones the repository without credentials, so the repository must be publicly readable. This tab accepts GitHub, GitLab and Bitbucket addresses.

A private GitHub repository entered here is cloned only if you have connected GitHub and the Codeego GitHub App is installed on that repository; otherwise Codeego shows Codeego can't read owner/repository with a link to install the app. Private repositories on GitLab or Bitbucket cannot be read; upload them as a ZIP archive instead.

ZIP archives#

In the Upload ZIP tab, drag a .zip file onto the drop area or click to browse. Only ZIP archives are accepted, up to 5 GB. The upload goes directly from your browser to Codeego's storage, and the page shows the upload percentage while it runs.

Password-protected archives

When you select a file, the browser reads the archive's index to check whether it is encrypted. If it is, the dialog shows This ZIP file is password-protected and a password field. Enter the password and select Verify. The check runs in your browser by decompressing one entry; the assessment can only be submitted once the dialog shows Password verified. The password is then sent with the upload so that the archive can be extracted for analysis.

Checks applied to archives

  • The archive may contain at most 100,000 files.
  • Archives that expand to more than 100 times their compressed size are rejected as a possible decompression bomb.
  • Entries whose paths point outside the archive (path traversal) cause the extraction to fail.
  • After extraction, the files are scanned for malware. If malware is detected, the assessment fails with the message Malware detected in uploaded file and is not analysed.

Size and price

The first gigabyte of an archive is included in the price. Above that, each additional gigabyte or part of one adds £3, shown in the order summary as Additional storage. For GitHub repositories the size reported by GitHub is used in the same way. A Git repository is limited to about 2 GB on disk once cloned; larger repositories fail during cloning.

What to include and what to leave out#

Provide the source code, build and dependency manifests (for example package.json, lock files, pyproject.toml, pom.xml), tests, documentation, infrastructure and CI configuration. These are the materials the analysis reads as evidence; see Static evidence.

Codeego removes the following before analysis, whatever the source, so there is no need to include them and they add to the upload size:

  • Dependency directories: node_modules, vendor, .venv, venv, env.
  • Build output: dist, build, target.
  • Caches and coverage output: __pycache__, .pytest_cache, .mypy_cache, .ruff_cache, .tox, .cache, coverage, .coverage.
  • Editor folders: .idea, .vscode.
  • Binary and non-source files such as images, video, audio, fonts, nested archives, office documents, databases, compiled bytecode, package files and source maps.

In ZIP archives, executable and script files (for example .exe, .dll, .so, .sh, .bat, .ps1) and hidden files whose names start with a dot are also skipped, except common configuration files such as .gitignore, .editorconfig, .dockerignore and .env.example. A .env file in an archive is therefore not extracted.

Remove secrets from the code you provide in any case: private keys, credentials files, cloud service account files and real values in configuration files. Codeego does not need them to assess the code, and a hard-coded secret found in the code is reported as a security finding. For how Codeego stores and deletes the code it receives, see How your code is handled.