Skip to content

Commit

Permalink
fix: 🐛 octokit
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Sep 25, 2020
1 parent 0a8eaba commit 029662a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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,
})
Expand Down

0 comments on commit 029662a

Please sign in to comment.