-
Couldn't load subscription status.
- Fork 726
Open
Labels
enhancementNew feature or requestNew feature or requestlicenserelating to software licensingrelating to software licensing
Description
What would you like to be added:
Today the metadata cataloger will look for licenses by searching for declarations within packaging manifests locally in the following files in License field only.:
syft/syft/pkg/cataloger/python/cataloger.go
Lines 39 to 42 in fe0b78b
| "**/*dist-info/METADATA", | |
| "**/*egg-info/PKG-INFO", | |
| "**/*DIST-INFO/METADATA", | |
| "**/*EGG-INFO/PKG-INFO", |
The python cataloger does have the ability to look in additional sibling files that the metadata file might reference too.
Adding a support additionally to classify licenses by
License-File field as well.
Why is this needed:
in our case, in the SBOM scan report (cyclonedx-json format) the license shown as "UNKNOWN"
{
"bom-ref": "pkg:pypi/[email protected]?package-id=c14a69f4da463c44",
"type": "library",
"author": "ScyllaDB",
"name": "scylla-api-client",
"version": "1.0",
"licenses": [
{
"license": {
"name": "UNKNOWN"
}
}
],
according to cat ./venv/lib/python3.11/site-packages/scylla_api_client-1.0.dist-info/METADATA | grep License
The license declaration shown under License-File filed
License: UNKNOWN
License-File: LICENSE.AGPL
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestlicenserelating to software licensingrelating to software licensing
Type
Projects
Status
Ready