Repository navigation
RepoBeagle v1.183.0
repobeagle run: scan the package behind a runner command before executing it.
Highlights
repobeagle run -- npx -y cowsayparses the wrapped runner (npm:npx,pnpm dlx,yarn dlx,bunx; PyPI:pipx run,uvx; crates:cargo install), resolves the package's repository from its registry JSON API (npm/PyPI/crates; cached under$XDG_CACHE_HOME/repobeagle/registrywithBEAGLE_REGISTRY_TTL, default 1 day; no package code executed), scans that repository through the normal pipeline, and only then executes the command.- Policy: GREEN runs; YELLOW prompts on a TTY and refuses in CI unless
--yes/--force; RED refuses unless--force;--dry-runscans and prints without executing. A scan failure or refusal exits 1 without running anything; otherwise the wrapped command's exit code passes through unchanged. --repo TARGETskips the registry lookup (slug, git URL or local dir) — useful for unsupported runners, registry metadata without a repository, and offline use. Scan flags/personas/offline options apply; the hardened image is used when Docker is available.- Only the
run -- …form is parsed: no shell re-quoting; flags belong to the wrapped command as written.
Verification
- PR #97:
offline1 m 35 s (483 assertions incl.tests/test_run.py),compare5 m 3 s,packaging-macos21 s,gate / gate5 s,image-toolchain1 m 2 s,upload×2 — green. - Acceptance from the released image (digest
sha256:0723ea033bdd1028c2a31feecaf7ee49f8d43cd6994d1d72f1447d35758a724c,cosign verifyVALID,stableidentical):
GREEN: run --repo <clean> -- python3 -c 'print("RAN")' -> RAN, exit 0
RED: run --repo <trap-npm> -- … -> exit 1, command not run, CRITICAL findings printed
RED --force -> RAN
YELLOW: non-TTY refuses (exit 1); --yes -> RAN
exit-code passthrough: wrapped `sys.exit(7)` -> 7
- Real resolution/execution (host CLI; the release image has no Node) with the actual runner:
$ repobeagle run --yes --no-docker --no-osv --no-trust --max-seconds 180 -- npx -y cowsay interceptor
run: npx cowsay -> npm registry lookup ...
run: scanning https://github.com/piuccio/cowsay (npm) ...
run: scanned https://github.com/piuccio/cowsay: YELLOW (critical 0, high 0, medium 1)
MEDIUM telemetry-analytics: browser.js:99 Mailchimp
run: executing npx -y cowsay interceptor
_____________
< interceptor >
-------------
- Tag binaries: the
binaryworkflow for v1.183.0 succeeded (linux amd64/arm64, macOS arm64).
Upgrade
./install.sh, or repobeagle update; light mode pipx install ..
Limits
- The scan covers the repository (default branch), not the exact published tarball; registry metadata can lag the release.
- Only the listed runners are understood; other commands need
--repo. runneeds Docker (default) or--no-dockerwith host tools, likescan.