bug(scan): --file-patterns
doesn't work for some post-analyzers
#6962
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Description
In most
post-analyzers
we userequired
function inPostAnalyze
.trivy/pkg/fanal/analyzer/language/nodejs/npm/npm.go
Lines 49 to 51 in 3eecfc6
But we don't have info about
file-patterns
inPostAnalyze
function.That is why
--file-patterns
flag may not work.We need to update our logic to take into account
file-patterns
forPostAnalyze
Related Issue
The text was updated successfully, but these errors were encountered: