From a0e5009d65105b323123511f43d927fd5d973806 Mon Sep 17 00:00:00 2001 From: Jamie Strandboge Date: Wed, 25 Mar 2026 16:03:54 -0500 Subject: [PATCH] chore(sql): add a couple more cve-query examples --- cvelib/sql.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cvelib/sql.py b/cvelib/sql.py index 28f8c15..6ab36cc 100644 --- a/cvelib/sql.py +++ b/cvelib/sql.py @@ -802,6 +802,18 @@ def main_cve_query(): cve-query -q "SELECT candidate, status FROM ghas_dependabot WHERE dependency = 'lodash' AND status LIKE 'dismissed%%'" + # Dismissed dependabot alerts for the 'lodash' dependency for a repo + cve-query -q "SELECT candidate, status FROM ghas_dependabot + WHERE dependency = 'lodash' AND status LIKE 'dismissed%%' + AND url LIKE 'https://github.com/org/repo/security/dependabot/%%'" + + # Dismissed dependabot alerts for the 'lodash' dependency for a repo with notes + cve-query -q "SELECT g.candidate, g.status, c.notes FROM ghas_dependabot g + JOIN cves c ON g.candidate = c.candidate + WHERE g.dependency = 'lodash' AND g.status LIKE 'dismissed%%' + AND g.url LIKE + AND url LIKE 'https://github.com/org/repo/security/dependabot/%%'" + # CVEs for 'go' opened between dates with priority >= medium cve-query -q "SELECT DISTINCT c.candidate, COALESCE(pp.priority, c.priority) as priority FROM pkgs p