-
Notifications
You must be signed in to change notification settings - Fork 168
Support for packages with multiple licenses #263
Copy link
Copy link
Closed
Labels
KeepExempt this from stalebotExempt this from stalebotenhancementNew feature or requestNew feature or request
Description
One of the packages we're importing has multiple licenses based on dependent projects. The Github dependency-graph API returns all 3 licenses. We have each of the 3 licenses in our allow-list, but because this is a single string response, it's failing the dependency review.
Response from the depency-graph API:
{
"change_type": "added",
"manifest": "package-lock.json",
"ecosystem": "npm",
"name": "@fortawesome/fontawesome-free",
"version": "5.15.4",
"package_url": "pkg:npm/%40fortawesome/fontawesome-free@5.15.4",
"license": "CC-BY-4.0 AND MIT AND OFL-1.1",
"source_repository_url": "https://github.com/FortAwesome/Font-Awesome",
"scope": "runtime",
"vulnerabilities": []
},Proposal
For a situation like this, the action would parse the license field and use the operator (AND) to check that all 3 licenses are in our allow-list. I can see the possibility of a dual-licensed package including an OR (e.g.: CC-BY-4.0 OR MIT) and so we'd want to use the operator (AND or OR) to validate against the allow-list or deny-list appropriately.
Thanks for your consideration!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
KeepExempt this from stalebotExempt this from stalebotenhancementNew feature or requestNew feature or request