-
Notifications
You must be signed in to change notification settings - Fork 66
add html reporter & create template for report #559
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
Conversation
vet Summary ReportThis report is generated by vet Policy Checks
Malicious Package AnalysisMalicious package analysis was performed using SafeDep Cloud API Malicious Package Analysis Report
Changed PackagesChanged Packages
Policy ViolationsPackages Violating Policy[Go]
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #559 +/- ##
========================================
- Coverage 8.35% 8.11% -0.24%
========================================
Files 280 284 +4
Lines 45973 47370 +1397
========================================
+ Hits 3839 3843 +4
- Misses 41856 43249 +1393
Partials 278 278 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Current presentation of report - https://github.com/user-attachments/assets/bc350cd1-988d-4ca8-8f94-5b235ea35ff3 |
50d10a0
to
7afea41
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds HTML reporting functionality to the Vet scanning tool, enabling users to generate comprehensive HTML reports of their security scans.
Key Changes:
- Added HTML reporter implementation with rich template support
- Created comprehensive HTML template with tabs for manifests, packages, vulnerabilities, malware, and policy violations
- Extracted common vulnerability and policy violation solution functions for code reuse
Reviewed Changes
Copilot reviewed 8 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
scan.go | Added --report-html flag and HTML reporter integration |
pkg/reporter/html.go | Complete HTML reporter implementation with data transformation logic |
pkg/reporter/templates/report.templ | Templ template source file for HTML report UI |
pkg/reporter/templates/report_templ.go | Generated Go code from templ template |
pkg/reporter/templ.go | Utility function for rendering templ components to files |
pkg/reporter/common.go | Extracted common vulnerability/policy violation solution functions |
pkg/reporter/gitlab.go | Refactored to use common solution functions |
go.mod | Added templ dependency and build tool |
@KunalSin9h Please review the changes in Gitlab reporter. Also please try this out locally and confirm that HTML reporting is working fine |
Co-authored-by: Kunal Singh <kunalsin9h@gmail.com> Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com>
76edde2
to
c94d760
Compare
Co-authored-by: Kunal Singh <kunalsin9h@gmail.com> Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com>
…nto feat/#523-html-report-support
@sudhanshutech FYI. Shipped a new feature of HTML report generation for |
No description provided.