Skip to content

feat(research): find advisories for the pins of the project - #3994

Merged
dan-petty merged 3 commits into
mainfrom
feat/3898-research-advisories
Nov 7, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/3898-research-advisories

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Issue #3898: no check reads the advisories of most pins of the project. devops ci audit skips the hashed requirement files of the tools lock. This change adds devops research advisories. It asks OSV about the Python and Node packages of the inventory with their exact versions, reads each advisory record for severity, affected range and fixed version, and counts the pins that it cannot check, by ecosystem. A lookup that gets no answer is reported and the command exits with 1, so it never shows a package as clean. The OSV client now refuses an answer over 4 MiB, follows no redirect, sends at most 1000 queries in a batch, and names itself devops-cli/<version> with no contact data. The GitHub advisories source, the CISA KEV flag and the components that OSV cannot match need an egress approval that no document records, so #3987 holds them.

Closes #3898

Change: openspec/changes/archive/2026-11-07-3898-research-advisories/

Issue #3898: no check reads the advisories of most pins. This change adds devops research advisories. It asks OSV about the Python and Node packages of the inventory with their exact versions, reads each advisory record for severity, affected range and fixed version, and reports the failed lookups instead of showing them as clean.
@dan-petty dan-petty added type/feature Type feature: a new function scope/research The research agent: the pins of the project and the news about them labels Nov 7, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence for #3898. Dates are 2026-11-07.

  • Full devops ci before the rebase: 20743 tests passed, coverage 94.75% (floor 85%). The test row took 8m 16s, over the 5-minute budget: that is the known fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593, and the slowest tests are not from this change. test-tree and swallowed-failures failed on the first run (a test module imported another test module; one blind except too many). Both are fixed, and devops ci --only test-tree,swallowed-failures,lint,format passes.
  • After the rebase onto origin/main: devops docs generate --check, devops openspec check, and the tests of tests/research, tests/commands/test_research_advisories.py, tests/security/test_vulnerability_lookup.py and the MCP tool listing pass (118 tests).
  • Reference check on a fixture: the findings for the three packages of tests/fixtures/research/advisories/repo/uv.lock are the same 8 ids as the output of osv-scanner 2.6.0 (zero difference). Both were recorded the same day.
  • Reference check on the real tree: devops research advisories reports 7 findings, all in src/devops_cli/tools_lock/semgrep.txt (certifi 2026.7.22, mcp 1.29.0, opentelemetry-api 1.37.0). osv-scanner 2.6.0 with --lockfile requirements.txt:src/devops_cli/tools_lock/semgrep.txt reports the same ids. The run covers 340 package versions and 558 components (181 not covered: 80 actions, 47 images, 18 charts, 20 release binaries, 9 Terraform providers, 7 devcontainer features; 4 tool entries are counted through their packages) and takes about 4 seconds. fix(deps): check the tools lock requirement files for advisories #3988 holds the fix and a check.
  • OSV does not match versions of GitHub Actions: tj-actions/changed-files at v45.0.0 and at 45.0.0 gave no result, but a query with no version gave its two advisories, and one says that the versions before 46.0.1 are affected. Actions are therefore not asked.
  • Not delivered, and moved to feat(research): add GitHub advisories and KEV to advisories #3987: GitHub GET /advisories and its live call with and without a token (so no rate limit was measured), the KEV flag, the Qdrant server case (GHSA-3gph-6c29-p29v, GHSA-frc7-44gm-99qq) and findings for Actions, images, charts and release binaries. They need an egress approval for api.github.com and www.cisa.gov that no document of the repository records. A person decides that approval.
  • No new instrument, so docs/TELEMETRY.md is unchanged. The OSV client keeps its existing VULNERABILITY_LOOKUPS_TOTAL counter.
  • Not run: a paid cloud model (the command uses none). The tuicr review of the diff is pending a person.

@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 14:25
@dan-petty
dan-petty merged commit 1d62738 into main Nov 7, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/3898-research-advisories branch November 7, 2026 15:00
dan-petty pushed a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.81.0](v0.80.0...v0.81.0)
(2026-11-07)


### Features

* **ai:** add the fetch-page command and MCP tool
([#3982](#3982))
([93c8008](93c8008)),
closes [#3892](#3892)
* **ai:** search the web through SearXNG
([#3980](#3980))
([dc276b0](dc276b0))
* **k8s:** run Crawl4AI in the devops namespace
([#3977](#3977))
([2be237b](2be237b)),
closes [#3884](#3884)
* **research:** find advisories for the pins of the project
([#3994](#3994))
([1d62738](1d62738)),
closes [#3898](#3898)
* **roadmap:** add a fetch_page tool to refine and alternatives
([#3974](#3974))
([7f2817c](7f2817c)),
closes [#3890](#3890)


### Bug Fixes

* **ai:** remove weight recs from gateway tune
([#3992](#3992))
([766fb99](766fb99))
* **k8s:** set the verification window in the example ConfigMap
([#3986](#3986))
([8436734](8436734))


### Code Refactoring

* **ui:** audit five dashboard tabs against open tools
([#3984](#3984))
([3ea416b](3ea416b))

---
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

scope/research The research agent: the pins of the project and the news about them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(research): find advisories for every pin

1 participant