trivy icon indicating copy to clipboard operation
trivy copied to clipboard

bug(scan): `--file-patterns` doesn't work for some `post-analyzers`

Open DmitriyLewen opened this issue 1 year ago • 0 comments

Description

In most post-analyzers we use required function in PostAnalyze. https://github.com/aquasecurity/trivy/blob/3eecfc6b6e1d6cef1497f7ff0044e676da159243/pkg/fanal/analyzer/language/nodejs/npm/npm.go#L49-L51 But we don't have info about file-patterns in PostAnalyze function. That is why --file-patterns flag may not work.

We need to update our logic to take into account file-patterns for PostAnalyze

Related Issue

  • #6946

DmitriyLewen avatar Jun 19 '24 05:06 DmitriyLewen