Repository navigation
feat(review): one command fetches the osv and trivy databases - #3543
Merged
Merged
Conversation
…tabases devops review fetch-databases starts osv-scanner and Trivy outside the sandbox. They write the directories that a review binds read-only. A review that lacks a database, or reads an osv-scanner database older than 24 hours, reports a coverage gap that names the command. A file is a lockfile for osv-scanner only when its name is in CONST_LOCKFILE_NAMES.
Owner
Author
|
Local Real run on 2026-11-04 in this checkout (osv-scanner 2.6.0, Trivy 0.75.0): the command fetched the PyPI and npm osv databases and the Trivy database and checks. A second run renewed the modified time of both osv files. |
dan-petty
marked this pull request as ready for review
November 4, 2026 23:23
dan-petty
pushed a commit
that referenced
this pull request
Nov 5, 2026
🤖 I have created a release *beep* *boop* --- ## [0.57.0](v0.56.5...v0.57.0) (2026-11-04) ### Features * **review:** one command fetches the osv and trivy databases ([#3543](#3543)) ([0d290b4](0d290b4)) ### Bug Fixes * **config:** find a plaintext secret at any depth in audit-keys ([#3546](#3546)) ([19b740e](19b740e)) * **roadmap:** one failed item does not suspend the stage row ([#3539](#3539)) ([0af847c](0af847c)) * **roadmap:** shorten a long item title before a job needs it ([#3541](#3541)) ([910312e](910312e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
devops review fetch-databases [PATH]fetches the databases that a sandboxed review binds read-only. It runs osv-scanner (--download-offline-databases, over the lockfiles ofPATH) and Trivy (--download-db-only, and aconfigrun for the checks bundle) outside the sandbox. Each tool writes the directory ofOsvScanner.data_dirs()orTrivyScanner.data_dirs().A scan with no database is a coverage gap that names the command. An osv-scanner scan on a database older than 24 hours is a gap that keeps its findings. The fetch renews the age of the files it confirmed, because osv-scanner rewrites a file only when upstream changed it.
OsvScannertakes a file as a lockfile only when its name is inCONST_LOCKFILE_NAMES. A file such asrules.lockmade osv-scanner exit 127 with no report, which stopped the fetch in this repository. The review pipeline has the same suffix rule (#3536).Closes #2131
Change:
openspec/changes/archive/2026-11-04-2131-one-devops-command-fetches-the/