Repository navigation
Description
Friction
Part of the tracker #772 (Part D: "the fetch step for the OSV and Trivy databases belongs here"). Since #2096, a review runs osv-scanner and Trivy in the network-less sandbox, and the sandbox binds their databases read-only. No devops command fetches those databases. On 2026-10-24 osv-scanner gave advisories in the sandbox only after a manual osv-scanner --download-offline-databases into a scratch directory. Without the fetch, osv-scanner has no offline database in either executor, and Trivy has none on a new host.
What should happen
One devops command fetches the osv-scanner offline databases and the Trivy database and checks, outside the sandbox, into the directories that the review binds read-only. A review that finds a database missing or older than its limit reports a coverage gap that names the command.
Evidence
- The feat(review): a review runs its tools in the network-less sandbox by default #2096 delivery (2026-10-24): the tool table in its PR body, and
security/osv_scanner.pyandsecurity/trivy.pybind their data directories read-only.
Acceptance criteria
- The command fetches both databases into the directories that the review binds, and a review in the sandbox then gives osv-scanner advisories and Trivy findings with no network.
- A review with no database reports a coverage gap that names the command.
Proposed design
Problem statement
A devops command must fetch osv-scanner and Trivy databases for sandboxed reviews. Reviews fail without these databases in the sandbox.
Acceptance criteria
- Criterion 1: The devops command fetches both databases into directories used by the sandbox.
Verification: Run the devops command and check that osv-scanner and Trivy database files exist in the correct directories. - Criterion 2: A sandboxed review uses the fetched databases to give advisories and findings without network access.
Verification: Run a sandboxed review and verify that osv-scanner gives advisories and Trivy gives findings without internet. - Criterion 3: A review reports a coverage gap when a database is missing or too old.
Verification: Run a review with missing or outdated databases and confirm it names the command in the coverage gap report.
Key questions
None.
Open questions
- Which directories does the sandbox bind read-only for the databases? (missing verified source)
- What is the expected behavior when a review finds a missing or outdated database? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
- StatusShow more project fieldsNew
Activity
feat(review): a review runs its tools in the network-less sandbox by …
dan-petty commentedon Oct 24, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The feature is required for sandboxed review tools to function without network access.The feature enables offline operation of security tools in reviews, improving reliability and performance.The effort involves implementing a new devops command and integrating it with existing review workflows.Both items relate to sandboxed reviews, but item 2096 concerns sandbox execution while this item concerns database fetching for that sandbox.dan-petty commentedon Oct 26, 2026
Refine cannot set this item to Ready at 48c78ca until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 5, 2026
Released in v0.57.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.57.0
devops-cli-service commentedon Nov 5, 2026
Live since 2026-11-05 00:12 UTC