From c4abc89bbdc19ba5ecc030fd15cfcff37823a97a Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Tue, 16 Nov 2021 12:54:12 -0800 Subject: [PATCH] fix(github-actions): properly set the authentication token for feature request action The octokit constructor was initially created with an older version of Octokit which supported providing the token as a property `token`, the property is now expected to be `auth` to properly use the token for authentication. --- github-actions/feature-request/main.js | 2 +- github-actions/feature-request/src/octokit.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/github-actions/feature-request/main.js b/github-actions/feature-request/main.js index 8c409455d..0c7e0fefa 100644 --- a/github-actions/feature-request/main.js +++ b/github-actions/feature-request/main.js @@ -11762,7 +11762,7 @@ var require_octokit = __commonJS({ this.options = options; this._orgMembers = new Set(); this.mockLabels = new Set(); - this._octokit = new rest_1.Octokit({ token }); + this._octokit = new rest_1.Octokit({ auth: token }); } get octokit() { return this._octokit; diff --git a/github-actions/feature-request/src/octokit.ts b/github-actions/feature-request/src/octokit.ts index 0cf3bb771..3d4ba9f8c 100644 --- a/github-actions/feature-request/src/octokit.ts +++ b/github-actions/feature-request/src/octokit.ts @@ -34,7 +34,7 @@ export class OctoKit implements GitHubAPI { protected params: {repo: string; owner: string}, protected options: {readonly: boolean} = {readonly: false}, ) { - this._octokit = new Octokit({token}); + this._octokit = new Octokit({auth: token}); } async *query(query: Query): AsyncIterableIterator {