feat(ci): Expand CVE reporting to med and low#27081
Merged
tdcmeehan merged 1 commit intoprestodb:masterfrom Feb 5, 2026
Merged
feat(ci): Expand CVE reporting to med and low#27081tdcmeehan merged 1 commit intoprestodb:masterfrom
tdcmeehan merged 1 commit intoprestodb:masterfrom
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the OWASP dependency check GitHub Actions workflow to report all CVEs (including low and medium severity) by lowering the default CVSS threshold used in the job. Sequence diagram for PR-triggered OWASP dependency check with expanded CVE reportingsequenceDiagram
actor Developer
participant GitHub
participant Workflow as GitHub_Workflow_owasp_dependency_check
participant Job as OWASP_Job
participant Scanner as OWASP_Dependency_Check
Developer->>GitHub: Open or update pull request
GitHub->>Workflow: Trigger owasp-dependency-check.yml
Workflow->>Job: Start job with env resolution
Job->>Job: Resolve CVSS_THRESHOLD
alt Input cvss-threshold provided
Job->>Job: CVSS_THRESHOLD = input value
else No input provided
Job->>Job: CVSS_THRESHOLD = 0.1
end
Job->>Scanner: Run scan with CVSS_THRESHOLD
Scanner-->>Job: Detected CVEs (all severities >= threshold)
Job-->>GitHub: Publish report including low, medium, high, critical CVEs
GitHub-->>Developer: Show OWASP report in PR checks
Flow diagram for CVSS threshold resolution in OWASP workflowflowchart TD
Start["Start OWASP job"] --> CheckInput["Check github.event.inputs.cvss-threshold"]
CheckInput -->|Present| UseInput["Set CVSS_THRESHOLD to provided input value"]
CheckInput -->|Missing| UseDefault["Set CVSS_THRESHOLD to default 0.1"]
UseInput --> RunScan["Run OWASP Dependency Check"]
UseDefault --> RunScan
RunScan --> Filter["Include CVEs with score >= CVSS_THRESHOLD"]
Filter --> Report["Generate CI CVE report"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Currently, only CVEs with a score about 7.0 are reported in the OWASP job. This helps getting alerted to high and critical CVEs. But even medium and low ranked CVEs have to be mitigated even if the timeline for them is longer. This helps to have the upstream project as free of CVEs as possible.
da9afe2 to
de001a4
Compare
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- If the intent is to include medium and low severities, consider using a threshold around 0.0 or 0.1–4.0 rather than 0.1 alone, and double-check that this aligns with OWASP’s severity ranges so you don’t inadvertently exclude some low-severity CVEs.
- Lowering the default CVSS_THRESHOLD for all runs may significantly increase noise and CI churn; consider making this stricter default apply only on main or scheduled runs, or exposing a clearer input option to toggle between
high-onlyandall severitiesmodes.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- If the intent is to include medium and low severities, consider using a threshold around 0.0 or 0.1–4.0 rather than 0.1 alone, and double-check that this aligns with OWASP’s severity ranges so you don’t inadvertently exclude some low-severity CVEs.
- Lowering the default CVSS_THRESHOLD for all runs may significantly increase noise and CI churn; consider making this stricter default apply only on main or scheduled runs, or exposing a clearer input option to toggle between `high-only` and `all severities` modes.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
tdcmeehan
approved these changes
Feb 5, 2026
This was referenced Mar 31, 2026
15 tasks
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.
Currently, only CVEs with a score about 7.0 are reported in the OWASP job. This helps getting alerted to high and critical CVEs. But even medium and low ranked CVEs have to be mitigated even if the timeline for them is longer. This helps to have the upstream project as free of CVEs as possible.
Description
Motivation and Context
Impact
Test Plan
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.
Summary by Sourcery
CI: