Skip to content

Commit

Permalink
Adds token info
Browse files Browse the repository at this point in the history
  • Loading branch information
francostramana committed Jan 22, 2024
1 parent 9cfe36e commit c4cdde3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
30 changes: 27 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/libs/github-check.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { context, getOctokit } from '@actions/github'
import { getInput } from '@actions/core'
import * as core from '@actions/core'

const NO_INITIALIZATE = -1

Expand All @@ -11,7 +11,8 @@ export class GitHubCheck {
private checkRunId: number

constructor(checkName: string) {
const GITHUB_TOKEN = getInput('github-token') // TODO: move to inputs.ts file?
const GITHUB_TOKEN = core.getInput('github-token') // TODO: move to inputs.ts file?
core.warning(`TOKEN ${GITHUB_TOKEN}`)

this.octokit = getOctokit(GITHUB_TOKEN)
this.checkName = checkName
Expand Down

0 comments on commit c4cdde3

Please sign in to comment.