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 b3b2a0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 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,9 @@ 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.info(`TOKEN ${GITHUB_TOKEN}`);

Check failure on line 15 in src/libs/github-check.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Delete `;⏎·`

Check failure on line 15 in src/libs/github-check.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Extra semicolon

Check failure on line 15 in src/libs/github-check.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Delete `;⏎·`

Check failure on line 15 in src/libs/github-check.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Extra semicolon


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

0 comments on commit b3b2a0e

Please sign in to comment.