-
Notifications
You must be signed in to change notification settings - Fork 15
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
Specify Maven classifiers / types as part of PURLs / metadata #42
Comments
I had always intended to do this, but I couldn't figure out where to get this information out of the Gradle API. Hoping that @bigdaz has a better idea where to find this information |
That's indeed something I've been banging my head for, too. In ORT, we currently have some not-so-nice code that searches all resolved artifacts for the id of a |
Oh, interesting! You should consider presenting ORT to the Open Source Security Foundation in one of the WG meetings. |
I was actually assuming OSSF to already be aware of ORT as both are Linux Foundation projects in more or less the same domain 😉 But I'll reach out on Slack, thanks! |
To add to that, the challenge is that also when determining the classifier / type of a (Maven) artifact, you don't want to download the (binary) artifact itself, but just its metadata, for performance reasons. I'm not sure if that's even possible with Gradle right now, or if the resolution process in this case always triggers the download of the artifact. |
@bigdaz, since you assigned this to yourself, is there any time frame for adding support for this? |
@sschuberth No, I don't have any plans to tackle this soon. |
Maven has the concept of a classifier that "distinguishes artifacts that were built from the same POM but differ in content". An example is the struts2-assembly dependency which has "lib", "min-lib" etc. variants that also are ZIPs instead of JARs (see Maven's "type").
As contents between such artifact variants differ, e.g. different vulnerabilities may apply. Also, when trying to use the PURL to construct the exact download location of the artifact for further inspection, that is not possible in this case without knowing about the classifier and type.
PURL already specifies how to map Maven classifier and type to its qualifiers, so it would be nice to have them there. Additionally, maybe a package's
metadata
object in GitHub's dependency submission API could be used to also list these properties.The text was updated successfully, but these errors were encountered: