feat(cli): add torb audit #319
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/23-torb-audit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #23
torb auditreadsproject.lock.trb, fetches and verifies the index of every registry package it pins (astorb adddoes, through mirrors and cache), and reports a pinned version the registry yanked and a package it flagged as deprecated. It writes nothing.path:packages are skipped.Exit codes:
0no findings,1findings,2the audit could not run (no lock, unreadable lock, missing or unverifiable index).The advisory database is #309 and not part of this PR.
Changes
compiler/src/package/audit.trb:AuditFinding,AuditReport,auditLockOf,auditReport.compiler/src/cli/packages.trb,usage.trb,main.trb: theauditcommand (minimal registration edit).compiler/tests/audit.test.trb: findings overfile:registries in a temporary directory.tools/command-line.sh,tests/command-line/arguments.expected:--helpofaudit.docs/tooling/torb-audit.mdand the pages and skills that list it.Test
CI result: pending (to be updated in a comment).
8f8cabb4b359ac2c330959ac2c33098560e41b928560e41b92db1867cc4etorb audit#23Approved. Checklist:
compiler/tests/audit.test.trbcovers clean lock, yanked pin, restored yank, other release unaffected, deprecated package, ordering,path:skip, owner-bound registry, missing index and missing lock. CI (tier A, tier B, bootstrap, conformance, pdisc) is green fordb1867c.runPackageCommandmaps command failures to 2 only foraudit. Argument errors exit 2 inmain.trb.torb add, and no new dependencies or secrets.torb-audit.md, the index, the command table, cross-links from yank/deprecate, and the regenerated skills. The pdisc check is green.Non-blocking: the PR body still says "CI result: pending"; update it if you like.