ZeroPath adds the fallback partition automatically during conversion. It has no directory paths of its own; its scope is the paths that no named partition covers.
Partitions are configured by you. The applications shown in threat models and issue filters are discovered from code, and a partition can contain more than one application.
Create partitions
Start with a repository already connected to ZeroPath. Creating partitions or changing their directory paths requires Create Repositories permission.- Open Repositories → Monorepos, then select Create monorepo.
- Select the repository to convert.
- Give the first partition a Partition Name and one or more Directory paths.
- Use Add Another Partition for each additional group of directories.
- Click Convert to Monorepo. The fallback is added alongside your named partitions.
- Open each partition’s repository page to review its scanner settings, configure its schedule, and start a scan.
Directory path rules
- Use paths relative to the repository root, ending in
/, such asapps/web/. - A partition can include several directories.
- Paths are directory prefixes. File names, glob patterns such as
**/*.ts, absolute paths, and..are not supported. - Different partitions cannot overlap:
apps/andapps/web/cannot belong to separate partitions.
How scans use partitions
Full scans
Each partition runs a separate scan. The scanner can read the whole repository to understand imports and shared code, so scan time still includes work outside the partition’s directories. A SAST finding is kept for a named partition when its reported location or the start of its data flow is inside that partition. For example, the API partition can report a flow that starts inservices/api/ and reaches vulnerable code in packages/shared/.
Where your plan enforces a full-scan size limit, the check uses the partition’s scope. For the fallback, that excludes directories assigned to named partitions.
Pull requests
PR scans for a named partition skip changes that do not touch its directories. On GitHub, changed files select which partitions receive scans; a PR touching both Web and API can trigger a scan for each. In the example above, a GitHub PR changing onlypackages/shared/ routes to the fallback. It does not automatically trigger scans for every service that imports that code. Run full scans of the affected partitions when you need to check those services after a shared-code change.