Skip to content

Commit

Permalink
fix(index.js): use new octokit endpoints actions/toolkit#783
Browse files Browse the repository at this point in the history
  • Loading branch information
gliech committed Jun 8, 2021
1 parent 1ea7757 commit be627f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -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") {
Expand Down

0 comments on commit be627f4

Please sign in to comment.