Upload sarif for eslint results

This commit is contained in:
Andrew Eisenberg 2024-09-09 13:15:25 -07:00
parent d8b1697e9a
commit 55c72b9aa6
No known key found for this signature in database
68 changed files with 18214 additions and 1 deletions

View file

@ -24,7 +24,18 @@ jobs:
uses: actions/checkout@v4
- name: Lint
run: npm run-script lint
run: npm run-script lint-ci
- name: Upload sarif
uses: github/codeql-action/upload-sarif@v3
# Only upload SARIF for the latest version of Node.js
if: matrix.node-types-version == 'current'
with:
sarif_file: eslint.sarif
category: eslint
- name: Ensure the working directory is clean
run: rm -f eslint.sarif
- name: Update version of @types/node
if: matrix.node-types-version != 'current'