File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 44
44
</testsuite >
45
45
{ {- end } }
46
46
47
+ { {- if .Secrets } }
48
+ { {- $secrets := len .Secrets } }
49
+ <testsuite tests =" { { $secrets } } " failures =" { { $secrets } } " name =" { { .Target } } " time =" 0" >{ { range .Secrets } }
50
+ <testcase classname =" { { .RuleID } } " name =" [{ { .Severity } } ] { { .Title } } " >
51
+ <failure message =" { { .Title } } " type =" description" >{ { escapeXML .Match } }</failure >
52
+ </testcase >
53
+ { {- end } }
54
+ </testsuite >
55
+ { {- end } }
56
+
47
57
{ {- end } }
48
58
</testsuites >
Original file line number Diff line number Diff line change @@ -415,8 +415,8 @@ If Trivy is installed using rpm then default templates can be found at `/usr/loc
415
415
| :----------------:| :---------:|
416
416
| Vulnerability | ✓ |
417
417
| Misconfiguration | ✓ |
418
- | Secret | |
419
- | License | |
418
+ | Secret | ✓ |
419
+ | License | ✓ |
420
420
421
421
In the following example using the template ` junit.tpl ` XML can be generated.
422
422
```
You can’t perform that action at this time.
0 commit comments