From 06e77953cd3988af85eb08468894e71b01aaa473 Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Tue, 13 Aug 2024 12:17:13 +0500 Subject: [PATCH 1/5] Fix reviewdog permissions --- .github/workflows/reviewdog.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 2a71419d5..1cf776c90 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -11,6 +11,10 @@ jobs: eslint: name: runner / eslint runs-on: ubuntu-latest + permissions: + checks: write + contents: read + pull-requests: read steps: - uses: actions/checkout@v2 - uses: reviewdog/action-eslint@v1 From 9a05fa2fc0bf356d9ac997082da8e1714718c21b Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Tue, 13 Aug 2024 12:29:16 +0500 Subject: [PATCH 2/5] Update reviewdog.yml --- .github/workflows/reviewdog.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 1cf776c90..6160b7d0d 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -1,20 +1,12 @@ 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: - checks: write - contents: read - pull-requests: read steps: - uses: actions/checkout@v2 - uses: reviewdog/action-eslint@v1 From c961ea8cd3058ee99750b584a460c63a00cd8653 Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Tue, 13 Aug 2024 12:35:59 +0500 Subject: [PATCH 3/5] Update reviewdog.yml --- .github/workflows/reviewdog.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 6160b7d0d..b1298137c 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -7,10 +7,17 @@ jobs: eslint: name: runner / eslint runs-on: ubuntu-latest + + permissions: + checks: write + contents: read + pull-requests: read + 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 From 0bdabee5a9969063a33c19b07f1e0817a1be8a8f Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Tue, 13 Aug 2024 12:38:35 +0500 Subject: [PATCH 4/5] Update reviewdog.yml --- .github/workflows/reviewdog.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index b1298137c..b435c9778 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -9,9 +9,8 @@ jobs: runs-on: ubuntu-latest permissions: - checks: write contents: read - pull-requests: read + pull-requests: write steps: - uses: actions/checkout@v2 From fe4a1fe3dbba5c7d85039afef138d08c12b4618c Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Tue, 13 Aug 2024 12:39:53 +0500 Subject: [PATCH 5/5] Update highlight-weakness.js --- plugins/highlight-weakness.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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