fix(dev-infra): update outdated build-worker.js file (#42458)

Updates the outdated build-worker.js file. This file has
been accidentally not updated when we fixed the Octokit
authentication to unblock the caretaker.
This commit is contained in:
Paul Gschwendtner 2021-06-02 22:13:26 +02:00 committed by GitHub
parent 3b434ed94d
commit f8814d3558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ var GithubClient = /** @class */ (function () {
/** The graphql instance with authentication set during construction. */
this._graphql = graphql.graphql.defaults({ headers: { authorization: "token " + this.token } });
/** The Octokit instance actually performing API requests. */
this._octokit = new rest.Octokit({ token: this.token });
this._octokit = new rest.Octokit({ auth: this.token });
this.pulls = this._octokit.pulls;
this.repos = this._octokit.repos;
this.issues = this._octokit.issues;