-
Notifications
You must be signed in to change notification settings - Fork 66
refactor: Sync reporter to allow env resolver adapter #495
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
|
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 refactors the sync reporter to support an environment resolver adapter. Key changes include:
- Adding a new SyncReporterEnvResolver interface and its default implementation.
- Updating reporter instantiation in scan.go and sync.go to inject an env resolver.
- Extending tests in pkg/reporter/sync_test.go to cover scenarios with resolved environment attributes and updating dependency versions in go.mod.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
scan.go | Updated reporter initialization to include the environment resolver adapter. |
pkg/reporter/sync_test.go | Added testEnvResolver and expanded tests for the createToolSessionRequestForProjectVersion function. |
pkg/reporter/sync.go | Introduced the SyncReporterEnvResolver interface with a default implementation and refactored reporter creation accordingly. |
go.mod | Updated dependency versions. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #495 +/- ##
==========================================
+ Coverage 16.21% 16.46% +0.24%
==========================================
Files 161 161
Lines 16160 16187 +27
==========================================
+ Hits 2621 2665 +44
+ Misses 13335 13318 -17
Partials 204 204 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3fd5d5c
to
b4cc31f
Compare
No description provided.