We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5c164a commit 2a7c09dCopy full SHA for 2a7c09d
backend/remote-state/gcs/backend.go
@@ -147,13 +147,13 @@ func (b *gcsBackend) configure(ctx context.Context) error {
147
conf := jwt.Config{
148
Email: account.ClientEmail,
149
PrivateKey: []byte(account.PrivateKey),
150
- Scopes: []string{storage.ScopeReadWrite},
+ Scopes: []string{storage.ScopeFullControl},
151
TokenURL: "https://accounts.google.com/o/oauth2/token",
152
}
153
154
opts = append(opts, option.WithHTTPClient(conf.Client(ctx)))
155
} else {
156
- opts = append(opts, option.WithScopes(storage.ScopeReadWrite))
+ opts = append(opts, option.WithScopes(storage.ScopeFullControl))
157
158
159
opts = append(opts, option.WithUserAgent(httpclient.UserAgentString()))
0 commit comments