From baf3ecee22ae21ec998ad354ffbc67c4522a968e Mon Sep 17 00:00:00 2001 From: j0code <42189560+j0code@users.noreply.github.com> Date: Mon, 4 May 2026 18:00:33 +0200 Subject: [PATCH 1/4] Create eslint.yml --- .github/workflows/eslint.yml | 55 ++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/eslint.yml diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml new file mode 100644 index 0000000..fbd262b --- /dev/null +++ b/.github/workflows/eslint.yml @@ -0,0 +1,55 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# ESLint is a tool for identifying and reporting on patterns +# found in ECMAScript/JavaScript code. +# More details at https://github.com/eslint/eslint +# and https://eslint.org + +name: ESLint + +on: + push: + branches: [ "main" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main" ] + schedule: + - cron: '34 4 * * 0' + +jobs: + eslint: + name: Run eslint scanning + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status + defaults: + run: + working-directory: ./client + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install ESLint + run: | + npm ci + npm install @microsoft/eslint-formatter-sarif@3.1.0 + + - name: Run ESLint + env: + SARIF_ESLINT_IGNORE_SUPPRESSED: "true" + run: npx eslint . + --config .eslintrc.js + --ext .js,.jsx,.ts,.tsx + --format @microsoft/eslint-formatter-sarif + --output-file eslint-results.sarif + continue-on-error: true + + - name: Upload analysis results to GitHub + uses: github/codeql-action/upload-sarif@v3 + with: + sarif_file: eslint-results.sarif + wait-for-processing: true From e7b6ac1842e84a6542efda309936fcbdf0a86fc0 Mon Sep 17 00:00:00 2001 From: j0code <42189560+j0code@users.noreply.github.com> Date: Mon, 4 May 2026 18:08:25 +0200 Subject: [PATCH 2/4] Upgrade actions to node24 in eslint.yml --- .github/workflows/eslint.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index fbd262b..09f73f1 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -31,7 +31,7 @@ jobs: working-directory: ./client steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Install ESLint run: | @@ -49,7 +49,9 @@ jobs: continue-on-error: true - name: Upload analysis results to GitHub + env: + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" uses: github/codeql-action/upload-sarif@v3 with: - sarif_file: eslint-results.sarif + sarif_file: client/eslint-results.sarif wait-for-processing: true From c7885b7f407820cde68cf94bf9004b05f05be0f5 Mon Sep 17 00:00:00 2001 From: j0code <42189560+j0code@users.noreply.github.com> Date: Mon, 4 May 2026 18:24:17 +0200 Subject: [PATCH 3/4] Fix eslint.yml (?) --- .github/workflows/eslint.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 09f73f1..ee7f165 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -42,8 +42,6 @@ jobs: env: SARIF_ESLINT_IGNORE_SUPPRESSED: "true" run: npx eslint . - --config .eslintrc.js - --ext .js,.jsx,.ts,.tsx --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif continue-on-error: true @@ -51,7 +49,7 @@ jobs: - name: Upload analysis results to GitHub env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" - uses: github/codeql-action/upload-sarif@v3 + uses: github/codeql-action/upload-sarif@v4 with: sarif_file: client/eslint-results.sarif wait-for-processing: true From 4e81569bc0b1c8d31fb94f98f250ae96d2d2399d Mon Sep 17 00:00:00 2001 From: j0code <42189560+j0code@users.noreply.github.com> Date: Mon, 4 May 2026 18:33:31 +0200 Subject: [PATCH 4/4] Update .github/workflows/eslint.yml Co-authored-by: cfp <44261356+cfpwastaken@users.noreply.github.com> --- .github/workflows/eslint.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index ee7f165..f7ee327 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -15,8 +15,6 @@ on: pull_request: # The branches below must be a subset of the branches above branches: [ "main" ] - schedule: - - cron: '34 4 * * 0' jobs: eslint: