Skip to content

Commit

Permalink
Rename github-token to token
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Jul 17, 2023
1 parent dd4ab68 commit 2a30aa5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- run: npm ci # or yarn install
- uses: sibiraj-s/action-eslint@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }} # optional
token: ${{ secrets.GITHUB_TOKEN }} # optional
eslint-args: '--ignore-path=.gitignore --quiet'
extensions: 'js,jsx,ts,tsx'
annotations: true
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ runs:
main: 'dist/index.js'

inputs:
github-token:
token:
description: The GitHub token used to create an authenticated client
required: false
default: ${{ github.token }}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { runEslint } from './eslint';
const run = async ():Promise<void> => {
try {
const inputs: Inputs = {
token: getInput('github-token', { required: true }),
token: getInput('token', { required: true }),
annotations: getBooleanInput('annotations'),
eslintArgs: getInput('eslint-args').split(' '),
workingDirectory: getInput('working-directory'),
Expand Down

0 comments on commit 2a30aa5

Please sign in to comment.