Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redacting the HTML Report #382

Open
Zuplyx opened this issue Feb 8, 2024 · 1 comment
Open

Redacting the HTML Report #382

Zuplyx opened this issue Feb 8, 2024 · 1 comment
Labels

Comments

@Zuplyx
Copy link

Zuplyx commented Feb 8, 2024

Hello,

we would like to publish the HTML report with each release of our product. But the report includes some fields which contain internal information which we do not want to expose in a public report. These fields are: File Path, Referenced In Projects/Scopes and Included By.

Is there a way to create a 'redacted' version of the report which does not include these fields?

@aikebah
Copy link
Contributor

aikebah commented May 15, 2024

I think you can create a custom derivative of the default html report template (or even build one fitting just your needs from scratch) and configure the plugin to use that as the report template.

The (format configuration parameter) can (undocumented feature) take fully-qualified or classpath-relative filepath for a custom template file in addition to the documented strings for the built-in report templates

The packaged template for HTML report can be found at https://github.com/jeremylong/DependencyCheck/blob/main/core/src/main/resources/templates/htmlReport.vsl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants