-
Notifications
You must be signed in to change notification settings - Fork 598
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
detect jQuery file #3566
Comments
This is an interesting ask! I would instinctively think this could be handled with an approach similar to the binary cataloger, where we determine some set of regular expressions and if matched, validate we found a jQuery file. See if there's some common |
I like the idea of trying to parse known javascript artifacts from popular CDN strings, though one of the difficulties will be anything using @latest and trying to resolve the actual currently used version. I do think it would be interesting to someday be able to point syft at a website and have it attempt to catalog everything from the html, but I suspect that is very different from anything it currently handles |
This would be very helpful to discover vendored dependencies as is the case for example with Django:
Even if the files don't themselves contain versions in their name, they often come with headers that contain that information:
I imagine this could be generalized into a |
What would you like to be added:
Detect jQuery file which is not managed by any package manager.
jquery-x.y.z.min.js
jquery-x.y.z.js
jquery-x.y.z.slim.min.js
Why is this needed:
To remove old jQuery files.
Additional context:
I think this will be solved with cataloger which is refffered in #2658
jQuery on CDN will be used widely, but I can not judge this is scope of Syft.
The text was updated successfully, but these errors were encountered: