Last active
January 3, 2024 13:09
-
-
Save itaysk/4299a8354c6c91a76487f952b07fa364 to your computer and use it in GitHub Desktop.
License report from Trivy full license scan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[.Results[] | .Licenses//empty | .[]] | | |
group_by(.Name) | .[] | | |
{"license":.[1].Name, "findings":map(if .PkgName=="" then .FilePath else .PkgName end)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trivy fs . --scanners license --license-full --format json | jq '[.Results[] | .Licenses//empty | .[]] | group_by(.Name) | .[] |{"license":.[1].Name, "findings":map(if .PkgName=="" then .FilePath else .PkgName end)}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment