mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
Add junit report format (#920)
* add junit report format * add fingerprint to expected test result to fix tests * fix expected junit test report
This commit is contained in:
1 parent
bc599446dc
commit
0dbdde837f
9 files changed
+247
-2
No files matched your search
@@ -24,6 +24,8 @@ func Write(findings []Finding, cfg config.Config, ext string, reportPath string)
|
||||
err = writeJson(findings, file)
|
||||
case ".csv", "csv":
|
||||
err = writeCsv(findings, file)
|
||||
case ".xml", "junit":
|
||||
err = writeJunit(findings, file)
|
||||
case ".sarif", "sarif":
|
||||
err = writeSarif(cfg, findings, file)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user