diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 2a71419d5..b435c9778 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -1,20 +1,22 @@ name: reviewdog -# read-only repo token -# no access to secrets on: pull_request: - paths-ignore: - - '!.github/**' jobs: eslint: name: runner / eslint runs-on: ubuntu-latest + + permissions: + contents: read + pull-requests: write + steps: - uses: actions/checkout@v2 - uses: reviewdog/action-eslint@v1 with: + github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review level: error fail_on_error: true diff --git a/plugins/highlight-weakness.js b/plugins/highlight-weakness.js index 6fca0bf58..8ed4ee464 100644 --- a/plugins/highlight-weakness.js +++ b/plugins/highlight-weakness.js @@ -11,10 +11,10 @@ var changelog = [ { version: '0.8.1', changes: ['Version upgrade due to a change in the wrapper: added plugin icon'], - }, + } ]; -function weaknessHighlight (data) { +function weaknessHighlight ( data) { if (data.portal.options.data.resCount !== undefined && data.portal.options.data.health !== undefined