Skip to content

License image scan filtering doesn't seem to work when trivyignore is specified with paths #6117

Closed Answered by DmitriyLewen
dus7eh asked this question in Q&A
Discussion options

You must be logged in to vote

I've made an additional observation that when generating lisences in json format the FilePath key has an empty value which might be related with this issue.

You are right. We currently don't fill filepath for os/language package licenses.
So you can't ignore packages licenses by path.
There is problem with filePath entry for languange package:
in some case we find licenses not from lock file (e.g. we check package.json files for yarn.lock, package-lock.json, etc. files).
But right now we don't have a field to save the file path for the license.


There is #5211. We can add filepath to license file into new Struct.
@knqyf263 wdyt?

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@knqyf263
Comment options

Answer selected by DmitriyLewen
Comment options

You must be logged in to vote
1 reply
@DmitriyLewen
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
triage/support Indicates an issue that is a support question. scan/license Issues relating to license scanning
3 participants