From 029662a5f0fa377ddf3ec9761099a7a875f254c3 Mon Sep 17 00:00:00 2001 From: bubkoo Date: Sat, 26 Sep 2020 01:19:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20octokit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index 97c75eb..7992fa9 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,5 +1,6 @@ import * as core from '@actions/core' import * as github from '@actions/github' +import { Octokit } from '@octokit/core' import sodium from 'tweetsodium' export namespace Util { @@ -16,7 +17,9 @@ export namespace Util { core.info(`Repo: ${JSON.stringify(repo, null, 2)}`) - const oct = getOctokit() + const oct = new Octokit({ auth: value }) + + // const oct = getOctokit() const rr = await oct.actions.getRepoPublicKey({ ...github.context.repo, })