From 4a97405a77c1883c242fc42bddf53ddb98d53231 Mon Sep 17 00:00:00 2001 From: MiguelVera Date: Fri, 22 Dec 2023 19:14:32 -0600 Subject: [PATCH] Set the cloud-platform access scope --- .../jenkins/plugins/storage/StorageScopeRequirement.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/google/jenkins/plugins/storage/StorageScopeRequirement.java b/src/main/java/com/google/jenkins/plugins/storage/StorageScopeRequirement.java index 5fd11930..babc2517 100644 --- a/src/main/java/com/google/jenkins/plugins/storage/StorageScopeRequirement.java +++ b/src/main/java/com/google/jenkins/plugins/storage/StorageScopeRequirement.java @@ -20,11 +20,14 @@ import com.google.jenkins.plugins.credentials.oauth.GoogleOAuth2ScopeRequirement; import java.util.Collection; -/** The required OAuth2 scopes for managing Google Cloud Storage buckets and objects. */ +/** + * The required OAuth2 scopes for managing Google Cloud Storage buckets and + * objects. + */ public class StorageScopeRequirement extends GoogleOAuth2ScopeRequirement { /** {@inheritDoc} */ @Override public Collection getScopes() { - return ImmutableList.of(StorageScopes.DEVSTORAGE_FULL_CONTROL); + return ImmutableList.of(StorageScopes.CLOUD_PLATFORM); } }