Skip to content

Commit

Permalink
Use the default client instead (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo authored Aug 19, 2024
1 parent e495015 commit bf31481
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
StorageOptions,
UploadOptions,
} from '@google-cloud/storage';
import { GoogleAuth } from 'google-auth-library';
import { errorMessage, toPlatformPath, toPosixPath } from '@google-github-actions/actions-utils';

import { Metadata } from './headers';
Expand Down Expand Up @@ -174,13 +173,7 @@ export class Client {
}

private constructor(opts?: ClientOptions) {
const authClient = new GoogleAuth({
projectId: opts?.projectID,
universeDomain: opts?.universe,
});

const options: StorageOptions = {
authClient: authClient,
projectId: opts?.projectID,
universeDomain: opts?.universe,
userAgent: userAgent,
Expand Down

0 comments on commit bf31481

Please sign in to comment.