Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DmitriyLewen opened this issue Jun 19, 2024 · 0 comments
Open

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

DmitriyLewen opened this issue Jun 19, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@DmitriyLewen
Copy link
Contributor

Description

In most post-analyzers we use required function in PostAnalyze.

required := func(path string, _ fs.DirEntry) bool {
return filepath.Base(path) == types.NpmPkgLock
}

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

@DmitriyLewen DmitriyLewen added the kind/bug Categorizes issue or PR as related to a bug. label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant