Skip to content

chore: only extract versions from packages in the generator ecosystem #957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2024

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented May 1, 2024

Cherry-picked from G-Rath/osv-detector#241


Currently the generators assume that all packages in an OSV are for their respective ecosystem which since they download ecosystem-specific databases is mostly true, but there are a few OSVs that are for packages that exist across more than one ecosystem.

This has not been a problem up until now because either the versions in such OSVs happen to be compatible with native ecosystem version parser or we're skipping invalid versions for legacy reasons, but now GHSA-5844-q3fc-56rh exists which has versions that are invalid in Ruby.

@codecov-commenter
Copy link

codecov-commenter commented May 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.67%. Comparing base (9df6829) to head (c1beb09).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #957   +/-   ##
=======================================
  Coverage   63.67%   63.67%           
=======================================
  Files         146      146           
  Lines       11960    11960           
=======================================
+ Hits         7615     7616    +1     
+ Misses       3879     3878    -1     
  Partials      466      466           

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

@G-Rath

This comment was marked as resolved.

@G-Rath G-Rath force-pushed the generators/specific-ecosystem branch from 58543db to 64b3c33 Compare May 3, 2024 03:32
@G-Rath G-Rath force-pushed the generators/specific-ecosystem branch from 64b3c33 to c1beb09 Compare May 6, 2024 03:13
@G-Rath G-Rath marked this pull request as ready for review May 6, 2024 03:17
@G-Rath G-Rath requested review from another-rex, cuixq and hogo6002 May 6, 2024 03:17
@another-rex another-rex merged commit 94dc496 into google:main May 6, 2024
13 checks passed
@G-Rath G-Rath deleted the generators/specific-ecosystem branch May 6, 2024 22:07
josieang pushed a commit to josieang/osv-scanner that referenced this pull request Jun 6, 2024
…google#957)

Cherry-picked from G-Rath/osv-detector#241

---

Currently the generators assume that all packages in an OSV are for
their respective ecosystem which since they download ecosystem-specific
databases is _mostly_ true, but there are a few OSVs that are for
packages that exist across more than one ecosystem.

This has not been a problem up until now because either the versions in
such OSVs happen to be compatible with native ecosystem version parser
or we're skipping invalid versions for legacy reasons, but now
GHSA-5844-q3fc-56rh exists which has versions that are invalid in Ruby.
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.

4 participants