diff --git a/src/main.ts b/src/main.ts index 5946acb..9054a4c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,3 @@ -import * as core from '@actions/core' import * as stepTracer from './stepTracer' import * as statCollector from './statCollector' import * as processTracer from './processTracer' diff --git a/src/post.ts b/src/post.ts index 04bab7c..6938cae 100644 --- a/src/post.ts +++ b/src/post.ts @@ -10,7 +10,9 @@ import { WorkflowJobType } from './interfaces' const { pull_request } = github.context.payload const { workflow, job, repo, runId, sha } = github.context const PAGE_SIZE = 100 -const octokit: Octokit = new Octokit() +const octokit: Octokit = new Octokit({ + auth: core.getInput('github_token') +}) async function getCurrentJob(): Promise { const _getCurrentJob = async (): Promise => {