Skip to content

Conversation

spencerschrock
Copy link
Member

What kind of change does this PR introduce?

bug fix

What is the current behavior?

osvscanner.DoScan throws an error when no packages are found. This bubbles up to the Vulnerabilities check as a runtime error.

What is the new behavior (if this is a feature change)?**

We ignore osvscanner.NoPackagesFoundErr.

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

Fixes #3802

Special notes for your reviewer

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

Projects without dependencies or packages no longer throw an error for the Vulnerabilities check.

Signed-off-by: Spencer Schrock <sschrock@google.com>
@spencerschrock spencerschrock requested a review from a team as a code owner January 17, 2024 21:16
@spencerschrock spencerschrock requested review from justaugustus and laurentsimon and removed request for a team January 17, 2024 21:16
Copy link

codecov bot commented Jan 17, 2024

Codecov Report

Merging #3803 (b43e47b) into main (51f1732) will decrease coverage by 6.77%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3803      +/-   ##
==========================================
- Coverage   75.48%   68.72%   -6.77%     
==========================================
  Files         230      230              
  Lines       15622    15624       +2     
==========================================
- Hits        11793    10737    -1056     
- Misses       3103     4231    +1128     
+ Partials      726      656      -70     

Signed-off-by: Spencer Schrock <sschrock@google.com>
@spencerschrock
Copy link
Member Author

/scdiff generate Vulnerabilities

Copy link

@spencerschrock spencerschrock enabled auto-merge (squash) January 19, 2024 19:04
@spencerschrock spencerschrock merged commit b556d93 into ossf:main Jan 19, 2024
@spencerschrock spencerschrock deleted the fix/osv-no-packages branch January 19, 2024 19:13
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.

BUG: Running checks with --local option
3 participants