Skip to content

feat(review): osv-scanner toolrun records its database digest - #3120

Merged
dan-petty merged 2 commits into
mainfrom
claude/project-thread-cje0xd
Nov 1, 2026
Merged

dan-petty merged 2 commits into
mainfrom
claude/project-thread-cje0xd

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Requested by D · project thread

The ToolRun of an osv-scanner run now records a digest of its offline database. OsvScanner.ruleset_files names the all.zip file of each ecosystem in the osv-scalibr directory, as TrivyScanner names its metadata file. The ruleset_digest of the record then changes when the database content changes, and stays the same when it does not.

The npm database is about 210 MB, over the 50 MiB limit of the digest step, so the record reads a ruleset file below a read-only bind of the request (a data directory of the tool) as a stream, at any size. A config file, and a ruleset file below no bind, keep the 50 MiB limit, because they can come from the reviewed tree. file_digest reads every file as a stream with hashlib.file_digest, with the same result as before.

The Ruff ToolRun already follows the config files that Ruff finds by name. docs/SELF_IMPROVEMENT.md now says that a base file named by extend is not covered. A person decides if a follow-up issue covers the extend chain.

Closes #2130

Change: openspec/changes/archive/2026-11-01-2130-the-toolrun-of-osv-scanner-and/


Generated by Claude Code

@dan-petty dan-petty self-assigned this Nov 1, 2026
@dan-petty dan-petty changed the title feat(review): the toolrun of osv-scanner records the digest of its database feat(review): osv-scanner toolrun records its database digest Nov 1, 2026
…tabase

The osv-scanner scanner names the all.zip file of each ecosystem in its
offline database as ruleset files, so the ruleset digest of the ToolRun
changes when the database changes. The record reads a ruleset file below
a read-only bind of the request as a stream, at any size, because the npm
database is larger than 50 MiB. Config files and other ruleset files keep
the 50 MiB limit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PeiMDq5tbpCiCuZiwxSgVv
@dan-petty
dan-petty force-pushed the claude/project-thread-cje0xd branch from 4e61093 to 3f93ed5 Compare November 1, 2026 22:51
@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 23:00
@dan-petty
dan-petty merged commit 5731fac into main Nov 1, 2026
20 checks passed
@dan-petty
dan-petty deleted the claude/project-thread-cje0xd branch November 1, 2026 23:01
dan-petty-release Bot added a commit that referenced this pull request Nov 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.38.0](v0.37.4...v0.38.0)
(2026-11-01)


### Features

* **review:** osv-scanner toolrun records its database digest
([#3120](#3120))
([5731fac](5731fac))
* **roadmap:** add gate tools to the runner, one shell policy
([#3111](#3111))
([7735d8b](7735d8b)),
closes [#3072](#3072)
* **roadmap:** give the step AGENTS.md and routed rules
([#3107](#3107))
([80a22eb](80a22eb)),
closes [#3097](#3097)
* **roadmap:** run the project hooks and scoped CI in the Job
([#3112](#3112))
([b7ab211](b7ab211)),
closes [#3043](#3043)


### Bug Fixes

* **ai:** send the per-call sampling of LLMClient.chat
([#3126](#3126))
([8207bdc](8207bdc))
* **argo:** replace a token that Argo CD refuses
([#3121](#3121))
([b4955b4](b4955b4))
* **devcontainer:** remove CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC
([#3125](#3125))
([295c32c](295c32c))
* **k8s:** set q8_0 KV cache on every Ollama tier
([#3101](#3101))
([aad0115](aad0115))
* **rag:** raise EmbeddingsError for an empty Ollama URL list
([#3118](#3118))
([111a031](111a031))
* **security:** refuse PYTEST_ADDOPTS and npm_config_logs_dir overrides
([#3119](#3119))
([9fe2af5](9fe2af5))


### Code Refactoring

* **security:** read legacy numeric hosts with getaddrinfo
([#3128](#3128))
([41779f9](41779f9))

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(review): the toolrun of osv-scanner and ruff records the digest of its advisory database and its configuration

2 participants