Skip to content

Commit

Permalink
Upload ESLint code scanning results to GitHub (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyj-3 committed Nov 17, 2023
1 parent bbdc481 commit b5f3adb
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,17 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: yarn lint
- uses: actions/checkout@v4
with:
repository: xyj-3/sarif-js-sdk
ref: e23ca2d8dc6d70a7959a2098eba8ac332de907bb
path: sarif-js-sdk
- name: Install ESLint formatter
run: yarn add file:sarif-js-sdk/packages/eslint-formatter-sarif
- name: Run ESLint with formatter
run: yarn lint --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif
- name: Upload ESLint result to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: eslint-results.sarif
wait-for-processing: true

0 comments on commit b5f3adb

Please sign in to comment.