Skip to content
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

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

Merged
merged 1 commit into from
Dec 24, 2023

Conversation

G-Rath
Copy link
Owner

@G-Rath G-Rath commented Dec 19, 2023

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.

@G-Rath G-Rath merged commit 220472e into main Dec 24, 2023
15 checks passed
@G-Rath G-Rath deleted the check-ecosystems branch December 24, 2023 01:03
another-rex pushed a commit to google/osv-scanner that referenced this pull request May 6, 2024
…#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.
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.

1 participant