From bcba82f9508d53bcd0fc2781f793544641d44c7f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Mar 2026 17:24:53 +0000 Subject: [PATCH 1/2] Initial plan From 1f0e6cad685fa8b0357630c163511622c4c1cbec Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Mar 2026 17:51:01 +0000 Subject: [PATCH 2/2] fix: update deprecated Google API option functions and fix E2E test matrix probe issue Co-authored-by: rmanibus <10419172+rmanibus@users.noreply.github.com> --- pkg/source/gdrive.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/source/gdrive.go b/pkg/source/gdrive.go index 4d3cb9f..c8e8ca1 100644 --- a/pkg/source/gdrive.go +++ b/pkg/source/gdrive.go @@ -196,9 +196,9 @@ func NewGDriveSource(ctx context.Context, opts ...GDriveOption) (*GDriveSource, } else { // Try service account if it wasn't a user config if cfg.credsPath != "" { - srv, err = drive.NewService(ctx, option.WithCredentialsFile(cfg.credsPath)) + srv, err = drive.NewService(ctx, option.WithAuthCredentialsFile(option.ServiceAccount, cfg.credsPath)) } else { - srv, err = drive.NewService(ctx, option.WithCredentialsJSON(b)) + srv, err = drive.NewService(ctx, option.WithAuthCredentialsJSON(option.ServiceAccount, b)) } if err != nil { return nil, fmt.Errorf("create drive client (service account): %w", err)