-
Notifications
You must be signed in to change notification settings - Fork 0
fix: don't generate advisories for Drupal distributions #148
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
base: main
Are you sure you want to change the base?
Conversation
Unifex
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the projects for a number of the SAs removed, and checking a few of them on Packagist, filtering on project_distribution does look like a legit filter.
I would wait for the +1 from @greggles as he likely has more insight into the ingestion process for Packagist.
|
I recommend limiting to the known good types instead of finding ones to filter out one-by-one. Packages.drupal.org/8 distributes |
I would rather we default to "excluding" rather than "including" until it proves to be untenable since that should ensure the most coverage and the
It's not a case that osv.dev doesn't want them, it's that the advisories should map to a concrete "thing" which is what needs to be changed to address the vulnerability, and for the Packagist ecosystem "thing" is "a package that is available via a Packagist-like repository". My understanding is that Drupal distributions are not provided as Packagist packages, so we shouldn't use that ecosystem, and there's no other way to represent them currently (i.e. in theory we could have a "drupal distribution" ecosystem that'd let us publish advisories for these) |
38b58fb to
41ab78d
Compare
That's correct, and the only type that will be available are |
|
Setting aside the include/exclude question, the current code seems ready to go from our perspective (myself, @sensespidey, and @ergonlogic reviewed). We also reproduced the linting errors that were reported with Example linting error that is no longer being output: As an FYI, we had to delete the existing Would it make sense to build in more of a workflow where we delete |
Appreciate the offer, but I've already got the majority of them addressed, I just need to push them up which should be up shortly 😅
After having to manually remove more advisories, I was convinced to just do this now: #153 |
41ab78d to
4c4b60e
Compare
d5bcde3 to
1504884
Compare
1504884 to
f2bb3b4
Compare
Distributions are not sourced through Composer so these advisories currently don't map to an actual packages and are getting flagged by the
osv-linter.Some of these advisories do seem to name specific modules which might be available via Composer, so these could come back in future but that'll require having the specific module represented in a machine-readable way