Skip to content

How to use a custom velocity template for reports? #4799

@gesellix

Description

@gesellix

We're trying to create a JSON formatted report to ease the integration with our monitoring tools. The existing JSON report doesn't include the overiew/summary like the HTML report, so we're working on a custom template which might be proposed here as soon as we're confident that it makes sense for other users.

Looking at https://github.com/jeremylong/DependencyCheck/blob/d8e090229b238394ee0792db74e47f07ba18fa6a/core/src/main/java/org/owasp/dependencycheck/reporting/ReportGenerator.java#L299-L305 we hoped that a custom report.vsl file could be used via CLI (e.g. as --format /path/to/report.vsl), but the CliParser fails at https://github.com/jeremylong/DependencyCheck/blob/041d9b0449e487fa1b3de1b24e00a3efc2eb627a/cli/src/main/java/org/owasp/dependencycheck/CliParser.java#L148-L160

Can you tell how to provide a custom template?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions