Kubernetes Scanning with Gitlab CI
Hello,
Currently using the command below:
trivy k8s -n MY_NAMESPACE all --report all --format template --template '@gitlab-ci.tpl'
Yields the following error:
FATAL unable to write results: unknown format "template". Use "json" or "table"
Is it possible to maybe add a Gitlab CI Template or the instructions how the scan of a whole cluster and posting a report to Gitlab-CI could be made possible?
https://github.com/aquasecurity/trivy/issues/2661
Format template is not supported yet for Kubernetes scanning
This issue is stale because it has been labeled with inactivity.
Keeping this one alive
This issue is stale because it has been labeled with inactivity.
Keep alive
@chen-keinan is it possible to refactor the code such that the output flag is just using the trivy one? there will be more improvements to output formatting soon and we want all the scanners in trivy to benefit from it
I don't think it is easy to use the trivy output implementation because the result of Kubernetes scanning has a different structure.
Would it be possible to enable the template output, if --scanners vuln is configured?