Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the SQLite schema used by cve-query to normalize previously inlined CVE/package metadata into dedicated tables, and extends the query tool/test suite accordingly.
Changes:
- Normalize CVE fields into new tables (references, bugs, discovered-by, GHAS alerts, OCI scan reports, pkg patches/tags/priorities/close-dates).
- Add insert helpers for the new tables and batch DB population via
commit=False+ a finalcommit(). - Harden
execute_query()by enforcing read-only queries via SQLite authorizer, and expand/adjust tests for the new schema and data sources.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
cvelib/sql.py |
Adds new normalized tables + insert helpers, batches commits during DB build, and restricts execute_query() to read-only via set_authorizer(). |
tests/test_sql.py |
Updates expectations for the new schema, adds coverage for new insert helpers, and extends CLI tests to cover GHAS/scan data ingestion and read-only query enforcement. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bc7b243 to
820aea7
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
820aea7 to
a2a2c5e
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a2a2c5e to
ee9f97b
Compare
Detect duplicates in setDiscoveredBy(), GHAS parse(), scan parse(), and setTags() raising CveException.
ee9f97b to
2088186
Compare
No description provided.