-
Notifications
You must be signed in to change notification settings - Fork 245
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
trivy-config input is not respected anymore #416
Comments
Hi @marcrohlfs ! Have you tried updating the action to the latest 0.28 version? It works for me. 2024-10-16T13:09:20Z INFO Loaded file_path=".github/workflows/config/trivy.yaml" |
Hi @nikpivkin, sorry for the late answer. I didn't try before, but I tested it successfully now. Many thanks! Actually, I wasn't aware that the regarding code is in another repository. When it didn't work, I just checked the code updates in here. Testing if the new version fixed the problem was a bit cumbersome (for me). Unfortunately there're not hints in the workflow run's output that give information if the config's settings are actually applied. Maybe it would be useful to expose such information, a least when debug logging is activated. Just an idea... 😉 Best regards! |
Unfortunately I have to come back on this, there still seems to be a problem. I just noticed that there're still reports for CVEs that should not be reported. With the configuration I already outlined above (now using As the |
Just discovered that we tripped over config changes in Trivy versions:
Unfortunately we changed to Some final thoughts:
|
We prefer having or Trivy configurations in
trivy.yaml
config files over passing the configurations via action inputs. It's more flexible (we can use configurations we couldn't when using the inputs) and the GitHub workflow code looks a bit cleaner. This worked fine until now, but after we updated to v0.26.0, the configurations in thetrivy.yaml
are not respected anymore. After #399 has been merged and released, thetrivy-config
input still exists, but it's not passed to theentrypoint.sh
anymore, nor used in there.Please re-implement passing the
trivy-config
to the Trivy command.Remark: Looks like some more inputs got lost, but they could also be configured via
trivy.yaml
.As an example, our Trivy actions look like this:
And the
trivy.yaml
:The text was updated successfully, but these errors were encountered: