From 29ed52ed3d8ea8e39c8fed7dd058cf94861dba83 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Fri, 19 Jan 2024 10:17:36 -0700 Subject: [PATCH] fix: use auth prop again in client --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index a73f273..1c08b3d 100644 --- a/index.js +++ b/index.js @@ -20,7 +20,6 @@ async function actism(input, steps, wasi, outputType, test) { outputType = outputType.trim(); let githubToken = core.getInput('github_token'); - githubToken = githubToken.trim(); if (githubToken.length === 0) { core.info("No `github_token` was read from input"); } @@ -84,7 +83,7 @@ const Steps = (input) => { const ActionsBindings = (githubToken) => { const hostFuncs = {}; - const octokit = github.getOctokit(githubToken); + const octokit = github.getOctokit({ auth: githubToken }); hostFuncs.github_context = (plugin) => { return plugin.store(JSON.stringify(github.context));