Skip to content

Conversation

abhisek
Copy link
Member

@abhisek abhisek commented May 27, 2025

No description provided.

Copy link

github-actions bot commented May 27, 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 buf.build/gen/go/safedep/api/grpc/go 1.5.1-20250527100058-ba6815156f1f.2 🔗
ECOSYSTEM_GO buf.build/gen/go/safedep/api/protocolbuffers/go 1.36.6-20250527100058-ba6815156f1f.1 🔗
  • ℹ️ 2 packages have been actively analyzed for malicious behaviour.
  • ✅ No malicious packages found.
Changed Packages

Changed Packages

  • ✅ [Go] buf.build/gen/go/safedep/api/protocolbuffers/go@1.36.6-20250527100058-ba6815156f1f.1
  • ✅ [Go] buf.build/gen/go/safedep/api/grpc/go@1.5.1-20250527100058-ba6815156f1f.2

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 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.

Copy link

codecov bot commented May 27, 2025

Codecov Report

Attention: Patch coverage is 72.13115% with 17 lines in your changes missing coverage. Please review.

Project coverage is 16.46%. Comparing base (1f8a575) to head (b7443d0).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/reporter/sync.go 73.33% 16 Missing ⚠️
scan.go 0.00% 1 Missing ⚠️
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.
📢 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.

@abhisek abhisek force-pushed the refactor/sync-reporter-env-resolver branch from 3fd5d5c to b4cc31f Compare May 27, 2025 15:42
@abhisek abhisek marked this pull request as ready for review May 27, 2025 15:50
@abhisek abhisek self-assigned this May 27, 2025
@abhisek abhisek merged commit 72e08bd into main May 27, 2025
11 checks passed
@abhisek abhisek deleted the refactor/sync-reporter-env-resolver branch May 27, 2025 16:30
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.

2 participants