Skip to content

Commit

Permalink
Merge pull request #54 from reviewdog/set-default-github-token
Browse files Browse the repository at this point in the history
Set github token as default
  • Loading branch information
mgrachev committed Oct 21, 2021
2 parents 7d8626b + f882077 commit 4c4064d
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 54 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/misspell.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/reviewdog.yml
@@ -0,0 +1,43 @@
name: reviewdog
on: [pull_request]

jobs:
misspell:
name: check / misspell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: misspell
uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
fail_on_error: true
locale: "US"

shellcheck:
name: runner / shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: shellcheck
uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
path: "."
pattern: "*.sh"
exclude: "./.git/*"

yamllint:
name: check / yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: yamllint
uses: reviewdog/action-yamllint@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
fail_on_error: true
yamllint_flags: '-d "{extends: default, rules: {truthy: disable}}" .'
18 changes: 0 additions & 18 deletions .github/workflows/shellcheck.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/yamllint.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -28,7 +28,7 @@ With `reporter: github-pr-review` a comment is added to the Pull Request Convers

### `github_token`

**Required**. Must be in form of `github_token: ${{ secrets.github_token }}`'.
`GITHUB_TOKEN`. Default is `${{ github.token }}`.

### `rubocop_version`

Expand Down Expand Up @@ -116,7 +116,6 @@ jobs:
with:
rubocop_version: gemfile
rubocop_extensions: rubocop-rails:gemfile rubocop-rspec:gemfile
github_token: ${{ secrets.github_token }}
reporter: github-pr-review # Default is github-pr-check
```

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -4,7 +4,7 @@ author: 'mgrachev (reviewdog)'
inputs:
github_token:
description: 'GITHUB_TOKEN'
required: true
default: ${{ github.token }}
rubocop_version:
description: 'Rubocop version'
rubocop_extensions:
Expand Down

0 comments on commit 4c4064d

Please sign in to comment.