Repository navigation
RepoBeagle v1.185.0
Workspace/monorepo awareness: package boundaries and per-package first-party inference.
Highlights
- Detection of declared workspace members: npm/pnpm/yarn
workspaces, Cargo[workspace] members,go.work usemodules and nested Python projects (pyproject.toml/setup.py), capped byBEAGLE_MAX_PACKAGES(default 50, the drop count is reported). No guessed directories, no code executed. - Findings whose path lies inside a package carry
package(manifest name) andpackage_path; the human report printspackage: …. Findings outside packages are the(root)bucket. Lockfile/OSV findings are attributed to the package that owns the lockfile path. - First-party domains are inferred per package (its own
CNAME/package.json/pyproject.toml/… plus.repobeagle.ymlhosts): package A'sCNAMEno longer marks package B's host as first-party, and root domains do not leak into packages. meta.workspacelists the detected packages and per-package severity counts (including(root)); the sum equals the report totals (asserted in tests).
Verification
- PR #99:
offline1 m 26 s (492 assertions incl.tests/test_workspace.py),compare6 m 33 s,packaging-macos21 s,image-toolchain58 s,gate / gate6 s,upload×2 — green. - Acceptance from the released image (digest
sha256:7d03b7765a3e6780f0a37b762575c58d72922e1ae588892d2feb4203dbe0c4a3,cosign verifyVALID,stableidentical):
packages: [('@acme/a', 'packages/a', 'npm'), ('@acme/b', 'packages/b', 'npm')]
per-package counts: {'(root)': {...low 1}, '@acme/a': {...low 3, info 1}, '@acme/b': {...low 1}}
report totals: {'critical': 0, 'high': 0, 'medium': 0, 'low': 5, 'info': 1}
a.example.com third-party findings: [('third-party-script', 'packages/b/index.html', '@acme/b')]
a.example.com first-party findings: [('first-party-endpoint', 'packages/a/index.html', '@acme/a')]
PASS package A's CNAME does not leak to B; per-package counts sum to the total
Upgrade
./install.sh, or repobeagle update; light mode pipx install ..
Notes
- One scan pass attributes findings to packages instead of re-scanning each package; root-level documentation findings are therefore not duplicated per package.
- Two packages with the same manifest name share a counts bucket (the sum still holds).
- Detection depends on declared members; undeclared directories stay in the root bucket.