Skip to content

RepoBeagle v1.185.0

Choose a tag to compare

@javierbits javierbits released this 26 Nov 09:16
· 4 commits to main since this release
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 use modules and nested Python projects (pyproject.toml/setup.py), capped by BEAGLE_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) and package_path; the human report prints package: …. 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.yml hosts): package A's CNAME no longer marks package B's host as first-party, and root domains do not leak into packages.
  • meta.workspace lists the detected packages and per-package severity counts (including (root)); the sum equals the report totals (asserted in tests).

Verification

  • PR #99: offline 1 m 26 s (492 assertions incl. tests/test_workspace.py), compare 6 m 33 s, packaging-macos 21 s, image-toolchain 58 s, gate / gate 6 s, upload×2 — green.
  • Acceptance from the released image (digest sha256:7d03b7765a3e6780f0a37b762575c58d72922e1ae588892d2feb4203dbe0c4a3, cosign verify VALID, stable identical):
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.