Skip to content

feat: add Grype version and vulnerability DB info to HTML template#3337

Open
xingzihai wants to merge 1 commit into
anchore:mainfrom
xingzihai:add-grype-version-to-html-template
Open

feat: add Grype version and vulnerability DB info to HTML template#3337
xingzihai wants to merge 1 commit into
anchore:mainfrom
xingzihai:add-grype-version-to-html-template

Conversation

@xingzihai

Copy link
Copy Markdown

Summary

This PR adds Grype version and vulnerability database information to the HTML template output.

Changes

  • Added Grype version display in HTML output
  • Added vulnerability database information (version, built date) to HTML output
  • Improves transparency and helps users understand the scanning context

Testing

  • Tested with various scan outputs
  • Verified version and DB info are correctly displayed

Screenshot

The HTML output now includes:

  • Grype version
  • Vulnerability DB version
  • DB build date

Add Grype version and vulnerability database built date to the HTML
report template header section. This allows users to determine if the
report was run using a recent version of Grype and if the vulnerability
database is current.

Changes:
- Add 'Grype Version' field showing tool name and version
- Add 'Vuln DB' field showing database build date
- Add renderFormattedDbBuilt() function for nice date formatting
- Update getReportMetadata() to include version info in exports
- Add Grype version and DB info to PDF/Excel export headers

Resolves issue anchore#2877
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant