There was an error while loading. Please reload this page.
1 parent c881a31 commit 64062f4Copy full SHA for 64062f4
1 file changed
pkg/signedrequests/gcs.go
@@ -51,7 +51,7 @@ func NewGCSBucketWithConfig(ctx context.Context, gc gcs.Config) (*GCSClient, err
51
52
// If ServiceAccount is provided, use them in GCS client, otherwise fallback to Google default logic.
53
if gc.ServiceAccount != "" {
54
- credentials, err := google.CredentialsFromJSON(ctx, []byte(gc.ServiceAccount), storage.ScopeFullControl)
+ credentials, err := google.CredentialsFromJSONWithType(ctx, []byte(gc.ServiceAccount), google.ServiceAccount, storage.ScopeFullControl)
55
if err != nil {
56
return nil, fmt.Errorf("create credentials from JSON: %w", err)
57
}
0 commit comments