Skip to content

Conversation

Sahilb315
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Aug 11, 2025

vet Summary Report

This report is generated by vet

Policy Checks

  • ✅ Vulnerability
  • ✅ Malware
  • ✅ License
  • ✅ Popularity
  • ❌ Maintenance
  • ✅ Security Posture
  • ✅ Threats

Malicious Package Analysis

Malicious package analysis was performed using SafeDep Cloud API

Malicious Package Analysis Report
Ecosystem Package Version Status Report
ECOSYSTEM_GO github.com/a-h/parse 0.0.0-20250122154542-74294addb73e 🔗
ECOSYSTEM_GO github.com/cenkalti/backoff/v4 4.3.0 🔗
ECOSYSTEM_GO github.com/natefinch/atomic 1.0.1 🔗
ECOSYSTEM_GO github.com/cli/browser 1.3.0 🔗
ECOSYSTEM_GO github.com/a-h/templ 0.3.924 🔗
  • ℹ️ 5 packages have been actively analyzed for malicious behaviour.
  • ✅ No malicious packages found.
Changed Packages

Changed Packages

  • ⚠️ [Go] github.com/cli/browser@1.3.0
  • ⚠️ [Go] github.com/a-h/parse@0.0.0-20250122154542-74294addb73e
  • ✅ [Go] github.com/cenkalti/backoff/v4@4.3.0
  • ✅ [Go] github.com/a-h/templ@0.3.924
  • ⚠️ [Go] github.com/natefinch/atomic@1.0.1
Policy Violations

Packages Violating Policy

[Go] github.com/cli/browser@1.3.0 🔗

  • ➡️ Found in manifest go.mod
  • ⚠️ Component appears to be unmaintained

[Go] github.com/a-h/parse@0.0.0-20250122154542-74294addb73e 🔗

  • ➡️ Found in manifest go.mod
  • ⚠️ Component appears to be unmaintained

[Go] github.com/natefinch/atomic@1.0.1 🔗

  • ➡️ Found in manifest go.mod
  • ⚠️ Component appears to be unmaintained

Copy link

codecov bot commented Aug 11, 2025

Codecov Report

❌ Patch coverage is 0.98522% with 1407 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.11%. Comparing base (4b80c4a) to head (3fbb8b3).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/reporter/templates/report_templ.go 0.00% 1005 Missing ⚠️
pkg/reporter/html.go 0.00% 366 Missing ⚠️
pkg/reporter/common.go 46.15% 14 Missing ⚠️
pkg/reporter/templ.go 0.00% 12 Missing ⚠️
scan.go 0.00% 10 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Sahilb315
Copy link
Contributor Author

@Sahilb315 Sahilb315 force-pushed the feat/#523-html-report-support branch from 50d10a0 to 7afea41 Compare August 12, 2025 08:48
@Sahilb315 Sahilb315 requested a review from Copilot August 12, 2025 08:48
Copy link
Contributor

@Copilot Copilot AI left a 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

@Sahilb315 Sahilb315 requested a review from abhisek August 12, 2025 08:53
@Sahilb315 Sahilb315 marked this pull request as ready for review August 12, 2025 08:54
@Sahilb315 Sahilb315 linked an issue Aug 12, 2025 that may be closed by this pull request
@Sahilb315 Sahilb315 requested a review from KunalSin9h August 12, 2025 10:08
@abhisek
Copy link
Member

abhisek commented Aug 12, 2025

@KunalSin9h Please review the changes in Gitlab reporter. Also please try this out locally and confirm that HTML reporting is working fine

KunalSin9h
KunalSin9h previously approved these changes Aug 12, 2025
@Sahilb315 Sahilb315 force-pushed the feat/#523-html-report-support branch from 76edde2 to c94d760 Compare August 12, 2025 17:02
@Sahilb315 Sahilb315 requested a review from abhisek August 14, 2025 11:31
@abhisek abhisek merged commit 0f4c01b into main Aug 18, 2025
8 of 11 checks passed
@abhisek abhisek deleted the feat/#523-html-report-support branch August 18, 2025 04:03
@abhisek
Copy link
Member

abhisek commented Aug 18, 2025

@sudhanshutech FYI. Shipped a new feature of HTML report generation for vet. This is based on ask from the community.

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.

HTML Reporting Support for vet
3 participants