-
Notifications
You must be signed in to change notification settings - Fork 546
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
Document command line flag for config file location #1271
Comments
@eslamkarim you can use the |
Oh, i didn't know that existed to be honest so that's perfect then. |
@eslamkarim yeah, I just noticed it's not mentioned in the docs -- I'll leave this issue open to get them updated. But you can see all the flags with |
thanks a lot for the help. |
Signed-off-by: James Neate <jamesmneate@gmail.com>
What would you like to be added:
An extra custom place to search for
.grype.yaml
config file. it can be an environment variable for the path.Why is this needed:
right now, the only places are static and in a ci/cd environment sometimes we want to make sure that the config file we specify is the one being used either it's in the shared directory or somewhere else maybe even a different config file for different steps (for a different ignore list of cve) etc
Additional context:
right now, the places grype searches for its configurations are.
.grype.yaml .grype/config.yaml ~/.grype.yaml <XDG_CONFIG_HOME>/grype/config.yaml
I am not sure if <XDG_CONFIG_HOME> is configurable or an env variable that we can change because if yes then that's exactly what we need.
The text was updated successfully, but these errors were encountered: