From 5a14fab8f6de281735c247340cc8b2ac247a93aa Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Wed, 13 Apr 2022 10:47:30 +0900 Subject: [PATCH] Set `github_token` default value Like [action-eslint](https://github.com/reviewdog/action-eslint). --- README.md | 3 +-- action.yml | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8b5f0ae..2d55d03 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ It's the same as the `-filter-mode` flag of reviewdog. ### `github_token` -**Required**. Must be in form of `github_token: ${{ secrets.github_token }}`'. +**Required**. Default is `${{ github.token }}`. ### `level` @@ -87,7 +87,6 @@ jobs: - name: stylelint uses: reviewdog/action-stylelint@v1 with: - github_token: ${{ secrets.github_token }} reporter: github-pr-review # Change reporter. stylelint_input: '**/*.css' ``` diff --git a/action.yml b/action.yml index 424384e..05cc506 100644 --- a/action.yml +++ b/action.yml @@ -5,6 +5,7 @@ inputs: github_token: description: 'GITHUB_TOKEN.' required: true + default: ${{ github.token }} level: description: 'Report level for reviewdog [info,warning,error]' default: 'error'