fossa-cli icon indicating copy to clipboard operation
fossa-cli copied to clipboard

Include only project-declared licenses in output of 'fossa report licenses'?

Open gibsondan opened this issue 4 years ago • 1 comments

Hello - I'm wondering if it's possible to filter down the results of the 'fossa report licenses' CLI command to only include the project declared licenses, rather than the full set of scanned licenses.

I see an option for that in the FOSSA UI for generating reports, but am unable to see a corresponding option in the 'fossa report licenses' CLI.

I also tried looking at the results of fossa report licenses --json but didn't see a field in the "Licenses" key that would allow me to distinguish between project declared licenses and scanned licenses.

Thanks!

gibsondan avatar Aug 16 '21 14:08 gibsondan

Hi @gibsondan, by "Project declared licenses" are you referring to licenses declared by the project you are scanning? For example, if you scanned the fossa-cli you would expect to see MPL-2.0 license?

zlav avatar May 11 '22 01:05 zlav