-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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(cli): Don't error out on empty trivy config yaml file #7934
Comments
small nit but this should be either a bug or a feature |
You're right. Since empty YAML files are technically valid YAML, this is a bug fix. I've updated the title. |
If an empty file is a valid YAML, IMO, the YAML library should not return an error. Then, I found this issue. I still feel like Line 231 in 46f1139
|
Yes, I also observed that but I thought I was doing something wrong as I didn't find the issue you linked. But I agree, in theory the two methods should behave the same. I've updated the PR for now to use |
We should handle empty trivy config yaml files more gracefully.
Originally posted by @EdKingscote in #7856 (comment)
The text was updated successfully, but these errors were encountered: