Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Ly-Joey
Copy link
Contributor

@Ly-Joey Ly-Joey commented Oct 31, 2025

Updated logic so that unscannable packages are still filtered for vulnerabilities and license matching, but they will be re-added to the final JSON result if the --all-packages flag is passed in.

Also updated docs to clarify the order of precedence between --all-packages flag and PackageOverrides actions in the config file.

Fixes #2157

Unscannable packages are still filtered for vuln and license matching,
but they will be re-added to the final display result if
`--all-packages`flag is passed in

Fixes google#2157
Made clear the order of precedence between `--all-packages` flag and
`PackageOverrides` actions in config file
@Ly-Joey Ly-Joey requested a review from another-rex October 31, 2025 00:05
Copy link
Collaborator

@another-rex another-rex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! LGTM

@another-rex
Copy link
Collaborator

Test error seems to be from a snapshot update, just run tests with UPDATE_SNAPS=true and it should be fixed.

@codecov-commenter
Copy link

codecov-commenter commented Oct 31, 2025

Codecov Report

❌ Patch coverage is 76.47059% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.91%. Comparing base (c3eecf4) to head (4ec427e).

Files with missing lines Patch % Lines
pkg/osvscanner/filter.go 71.42% 2 Missing ⚠️
pkg/osvscanner/osvscanner.go 66.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2311      +/-   ##
==========================================
- Coverage   67.95%   67.91%   -0.05%     
==========================================
  Files         172      172              
  Lines       12821    12836      +15     
==========================================
+ Hits         8712     8717       +5     
- Misses       3437     3446       +9     
- Partials      672      673       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Ly-Joey Ly-Joey merged commit 8a3916c into google:main Oct 31, 2025
17 checks passed
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.

--all-packages flag should also show unscannable filtered packages.

3 participants