Skip to content

Commit

Permalink
Merge pull request #169 from pisto/service-account-key-fix-oauth-scope
Browse files Browse the repository at this point in the history
Request the correct OAuth scopes when using service account keys.
  • Loading branch information
spowelljr authored Dec 12, 2024
2 parents 52c6029 + 45cf2ab commit a58a8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func watchNamespaces() error {

// grab credentials from where GCP would normally look
ctx := context.Background()
creds, err := google.FindDefaultCredentials(ctx)
creds, err := google.FindDefaultCredentials(ctx, "https://www.googleapis.com/auth/cloud-platform")
if err != nil {
return fmt.Errorf("finding default credentials: %v", err)
}
Expand Down

0 comments on commit a58a8f9

Please sign in to comment.