From f8814d3558f11d93d63392f2e99eaf1320b57ed5 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Wed, 2 Jun 2021 22:13:26 +0200 Subject: [PATCH] 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. --- dev-infra/build-worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-infra/build-worker.js b/dev-infra/build-worker.js index 16f67521b0..31bbc5970e 100644 --- a/dev-infra/build-worker.js +++ b/dev-infra/build-worker.js @@ -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;