Skip to content

Commit 55c72b9

Browse files
committed
Upload sarif for eslint results
1 parent d8b1697 commit 55c72b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+18214
-1
lines changed

.github/workflows/pr-checks.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,18 @@ jobs:
2424
uses: actions/checkout@v4
2525

2626
- name: Lint
27-
run: npm run-script lint
27+
run: npm run-script lint-ci
28+
29+
- name: Upload sarif
30+
uses: github/codeql-action/upload-sarif@v3
31+
# Only upload SARIF for the latest version of Node.js
32+
if: matrix.node-types-version == 'current'
33+
with:
34+
sarif_file: eslint.sarif
35+
category: eslint
36+
37+
- name: Ensure the working directory is clean
38+
run: rm -f eslint.sarif
2839

2940
- name: Update version of @types/node
3041
if: matrix.node-types-version != 'current'

node_modules/.package-lock.json

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@microsoft/eslint-formatter-sarif/README.md

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@microsoft/eslint-formatter-sarif/package.json

Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)