Trivy: feature request: junit output

Created on 18 Jul 2019  路  8Comments  路  Source: aquasecurity/trivy

As I'm looking into integrating this into my CI pipelines, I'm looking for a way to present the findings to the user without having to troll the build logs. One mechanism that I was thinking about was to present this to a job as tests. Since most ecosystems support junit that seems like it would makes sense.

good first issue help wanted kinfeature prioritbacklog

Most helpful comment

Trivy has supported JUnit output. It can be used in the next release. Thank you, @rahul2393.
https://github.com/aquasecurity/trivy#save-the-results-using-a-template

image

All 8 comments

@scbunn Thank you for the suggestion. I didn't know that most ecosystems support junit xml.
I would like to support junit xml.

However, I have a lot of tasks currently. If someone is interested in this feature, please implement it.

This would be great to have.

I would very much like the feature, since all our other ci-tests already support junit.

I'm working on a template for junit.xml format. First time working with Go and Go templates. The gitlab.tpl is very helpful.

Any recommendation how to print an item and remove all double quotes?

@jeff-cook It's really helpful! I'm not sure exactly what you need, but the function might be useful.
https://golang.org/pkg/text/template/#example_Template_func

I am working on this issue, will create PR shortly

Trivy has supported JUnit output. It can be used in the next release. Thank you, @rahul2393.
https://github.com/aquasecurity/trivy#save-the-results-using-a-template

image

I released v0.9.2 including this feature.
https://github.com/aquasecurity/trivy/releases/tag/v0.9.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonpulsifer picture jonpulsifer  路  5Comments

dendi picture dendi  路  3Comments

patrickbaber picture patrickbaber  路  3Comments

abedra picture abedra  路  4Comments

ajinkya599 picture ajinkya599  路  6Comments