Skip to content

Commit

Permalink
feat: added reported secrets in junit template
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiogermann authored Dec 31, 2024
1 parent e8085ba commit d0be964
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contrib/junit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,15 @@
</testsuite>
{{- end }}

{{- if .Secrets }}
{{- $secrets := len .Secrets }}
<testsuite tests="{{ $secrets }}" failures="{{ $secrets }}" name="{{ .Target }}" time="0">{{ range .Secrets }}
<testcase classname="{{ .RuleID }}" name="[{{ .Severity }}] {{ .Title }}">
<failure message="{{ .Title }}" type="description">{{ escapeXML .Match }}</failure>
</testcase>
{{- end }}
</testsuite>
{{- end }}

{{- end }}
</testsuites>

0 comments on commit d0be964

Please sign in to comment.