Update PURL mappings for conda-forge packages #325
Thanks! One doubt before merging: this changes capstone's primary purl from pkg:github/capstone-engine/capstone to pkg:pypi/capstone.
The conda-forge package is built per Python version (py314… builds), so PyPI is defensible. But it also ships the C library (libcapstone), and most capstone advisories/CVEs are filed against the upstream C project. For vulnerability matching, keeping the GitHub purl as primary and PyPI as the alternative might work better. Happy to go either way; what was the reasoning for flipping it?
For vulnerability matching, keeping the GitHub purl as primary and PyPI as the alternative might work better.
Considering that the associated capstone-feedstock's meta.yaml uses Github releases as source, so I agree, we should keep Github purl as primary.
"capstone": {
"purl": "pkg:github/capstone-engine/capstone",
"type": "pypi",
"namespace": null,
"pkg_name": "capstone",
"alternative_purls": [
"pkg:pypi/capstone"
]
Requested changes.
@wolfv A gentle reminder to apply this suggestion (I don't have the access to do so) and possibly merge this PR. It is as per your above comment. TY.
Review: the capstone output really is the Python binding, so the PyPI identity is correct. However, replaying this PR produces purl: "pkg:pypi/capstone" with the old namespace: "capstone-engine" still present.
The shared merger ignores namespace: null; the editor can subsequently rebuild this as pkg:pypi/capstone-engine/capstone. This is the same existing merge bug blocking #361. Fix namespace clearing for primary-coordinate changes and add a regression test before merging.
pb01ka
purl-associator-app[bot]
This PR updates PURL mappings for 1 conda-forge package — 1 approved.