From 757a86c5d4a94ccd96917bddbb1e4e55bf63f11e Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Mon, 25 Jul 2022 11:28:55 -0400 Subject: [PATCH] Add email scope to driver --- builder/googlecompute/driver_gce.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/builder/googlecompute/driver_gce.go b/builder/googlecompute/driver_gce.go index 2d58fe7c..94a7fd70 100644 --- a/builder/googlecompute/driver_gce.go +++ b/builder/googlecompute/driver_gce.go @@ -45,7 +45,11 @@ type GCEDriverConfig struct { VaultOauthEngineName string } -var DriverScopes = []string{"https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/devstorage.full_control"} +var DriverScopes = []string{ + "https://www.googleapis.com/auth/userinfo.email", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/devstorage.full_control", +} // Define a TokenSource that gets tokens from Vault type OauthTokenSource struct {