Skip to content

Commit

Permalink
Set github token as default (#36)
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Grachev <work@mgrachev.com>
mgrachev authored Oct 21, 2021
1 parent 2001b88 commit dfab7ca
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ With `reporter: github-code-suggestions` a code suggestion is added to the Pull

### `github_token`

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

### `dotenv_linter_flags`

@@ -78,7 +78,6 @@ jobs:
- name: Run dotenv-linter
uses: dotenv-linter/action-dotenv-linter@v2
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review # Default is github-pr-check
dotenv_linter_flags: --skip UnorderedKey
```
@@ -97,7 +96,6 @@ jobs:
- name: Run dotenv-linter with code suggestions
uses: dotenv-linter/action-dotenv-linter@v2
with:
github_token: ${{ secrets.github_token }}
reporter: github-code-suggestions
```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ author: 'mgrachev (reviewdog)'
inputs:
github_token:
description: 'GITHUB_TOKEN'
required: true
default: ${{ github.token }}
dotenv_linter_flags:
description: 'dotenv-linter flags. (dotenv-linter <dotenv_linter_flags>)'
default: ''

0 comments on commit dfab7ca

Please sign in to comment.