From be627f40ec1ab30cf96be06314e4318cb9dcfb2f Mon Sep 17 00:00:00 2001 From: gliech Date: Wed, 9 Jun 2021 00:12:59 +0200 Subject: [PATCH] fix(index.js): use new octokit endpoints https://github.com/actions/toolkit/pull/783 --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 383ac83..a8a13e9 100644 --- a/index.js +++ b/index.js @@ -34,8 +34,8 @@ async function run() { const input_pat = core.getInput("pa_token") const octokit = github.getOctokit(input_pat) - const get_public_key = octokit.actions[`get${secret_target.short_type}PublicKey`] - const upsert_secret = octokit.actions[`createOrUpdate${secret_target.short_type}Secret`] + const get_public_key = octokit.rest.actions[`get${secret_target.short_type}PublicKey`] + const upsert_secret = octokit.rest.actions[`createOrUpdate${secret_target.short_type}Secret`] let org_arguments = {} if (secret_target.type == "organization") {