-
Notifications
You must be signed in to change notification settings - Fork 585
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
Scan specific file #2041
Labels
changelog-ignore
Don't include this issue in the release changelog
enhancement
New feature or request
Comments
Hi @metametadata, Grype supports this today. I've tested this with topthink/framework vulnerability and
What is the package you are expecting to see vulnerabilities from -- perhaps it's just not in the GHSA data set? |
Thanks, I simply didn't know there is a |
kzantow
added
the
changelog-ignore
Don't include this issue in the release changelog
label
Sep 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
changelog-ignore
Don't include this issue in the release changelog
enhancement
New feature or request
What would you like to be added:
Scan a single file, e.g. something like
grype file:path/to/yourproject/composer.lock
.Why is this needed:
Currently I see only the way to scan the directory recursively:
grype dir:path/to/yourproject
. But a directory can contain a lot of other stuff which pollutes the output, slows scanning down, etc. E.g. in my project thedir
scan detects 3,739 packages vs. 95 specifically fromcomposer.lock
due to Ruby and NPM packages detected in subdirs.The text was updated successfully, but these errors were encountered: