Skip to content

Commit

Permalink
Merge pull request #2469 from github/aeisenberg/upload-eslint-sarif
Browse files Browse the repository at this point in the history
Upload sarif for eslint results
  • Loading branch information
aeisenberg authored Sep 10, 2024
2 parents 49021ad + 56b8418 commit e817992
Show file tree
Hide file tree
Showing 70 changed files with 18,213 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

10 changes: 9 additions & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ 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: Update version of @types/node
if: matrix.node-types-version != 'current'
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ node_modules/.cache/
*.class
# macOS
.DS_Store
# eslint sarif report
eslint.sarif
30 changes: 30 additions & 0 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions node_modules/@microsoft/eslint-formatter-sarif/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions node_modules/@microsoft/eslint-formatter-sarif/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e817992

Please sign in to comment.