Skip to content

Commit 64062f4

Browse files
committed
signedrequests: Ensure credential type is serviceaccount
1 parent c881a31 commit 64062f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/signedrequests/gcs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func NewGCSBucketWithConfig(ctx context.Context, gc gcs.Config) (*GCSClient, err
5151

5252
// If ServiceAccount is provided, use them in GCS client, otherwise fallback to Google default logic.
5353
if gc.ServiceAccount != "" {
54-
credentials, err := google.CredentialsFromJSON(ctx, []byte(gc.ServiceAccount), storage.ScopeFullControl)
54+
credentials, err := google.CredentialsFromJSONWithType(ctx, []byte(gc.ServiceAccount), google.ServiceAccount, storage.ScopeFullControl)
5555
if err != nil {
5656
return nil, fmt.Errorf("create credentials from JSON: %w", err)
5757
}

0 commit comments

Comments
 (0)