Skip to content

Commit

Permalink
address pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 committed Jul 3, 2024
1 parent bbf550a commit e6fcad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/filebeat/input/gcs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit e6fcad0

Please sign in to comment.