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

feat: add community template folder and new table template #1343

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

jneate
Copy link
Contributor

@jneate jneate commented Jun 9, 2023

This is a start on #1316 - Unsure whether this fixes #629 or more work is needed to fix the issues.

I've included a template that mimics the table output of Grype, it's not great (see the README) and it can be optimised further by adding some helper functions into the presenter FuncMap but it works and it's a start.

image

Biggest pain is it's sorted by the CVE (I think) but like I said, it's a start.

Fixed-In is a list so I concatenated the fields in the template but I couldn't find an example with multiple fix versions so can't provide a shiny screenshot sorry

Potentially more documentation could go in the README about extracting the json models so people know what fields are available etc.

Signed-off-by: James Neate <jamesmneate@gmail.com>
@spiffcs spiffcs merged commit c47304b into anchore:main Jun 9, 2023
@spiffcs
Copy link
Contributor

spiffcs commented Jun 9, 2023

Thanks for the PR @jneate! This is a great start and I don't see any reason why we can't use this as the foundation and add more/improve on the template you added going forward. Thanks again for the documentation too!

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.

Expose Go template file that produces the table report
2 participants