From e1c6e460f4495fc6c98719473bdf201c52f5d2b6 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Wed, 3 Jul 2024 12:40:05 +0930 Subject: [PATCH] address pr comment --- x-pack/filebeat/input/gcs/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/filebeat/input/gcs/config.go b/x-pack/filebeat/input/gcs/config.go index e362bce6aa4..ed589e43df1 100644 --- a/x-pack/filebeat/input/gcs/config.go +++ b/x-pack/filebeat/input/gcs/config.go @@ -12,7 +12,7 @@ import ( "os" "time" - "cloud.google.com/go/pubsub" + "cloud.google.com/go/storage" "golang.org/x/oauth2/google" "github.com/elastic/beats/v7/libbeat/common/match" @@ -97,7 +97,7 @@ func (c authConfig) Validate() error { } // Application Default Credentials (ADC) - _, err := google.FindDefaultCredentials(context.Background(), pubsub.ScopePubSub) + _, err := google.FindDefaultCredentials(context.Background(), storage.ScopeReadOnly) if err == nil { return nil }