Skip to content

Commit 7cdb641

Browse files
lesauxneolynx
authored andcommitted
fix golangci ? not too sure what's going on here
1 parent c25a1d5 commit 7cdb641

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gcs/public.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ func NewPublishedStorage(bucket, prefix, credentialsFile, serviceAccountJSON,
4848
if endpoint != "" {
4949
opts = append(opts, option.WithEndpoint(endpoint), option.WithoutAuthentication())
5050
} else if credentialsFile != "" {
51-
opts = append(opts, option.WithCredentialsFile(credentialsFile))
51+
opts = append(opts, option.WithAuthCredentialsFile(option.ServiceAccount, credentialsFile))
5252
} else if serviceAccountJSON != "" {
53-
opts = append(opts, option.WithCredentialsJSON([]byte(serviceAccountJSON)))
53+
opts = append(opts, option.WithAuthCredentialsJSON(option.ServiceAccount, []byte(serviceAccountJSON)))
5454
}
5555

5656
if project != "" {

0 commit comments

Comments
 (0)