Skip to content

Commit 7e1bf4b

Browse files
committed
update eslint workflow
1 parent dedb22f commit 7e1bf4b

1 file changed

Lines changed: 4 additions & 25 deletions

File tree

.github/workflows/eslint.yml

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,9 @@ jobs:
2222
eslint:
2323
name: Run eslint scanning
2424
runs-on: ubuntu-latest
25-
permissions:
26-
contents: read
27-
security-events: write
28-
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
2925
steps:
30-
- name: Checkout code
31-
uses: actions/checkout@v4
32-
33-
- name: Install ESLint
34-
run: |
35-
npm install eslint
36-
npm install @microsoft/eslint-formatter-sarif@3.1.0
37-
26+
- uses: actions/checkout@v4
27+
- name: Install modules
28+
run: npm install
3829
- name: Run ESLint
39-
env:
40-
SARIF_ESLINT_IGNORE_SUPPRESSED: "true"
41-
run: npx eslint .
42-
--format @microsoft/eslint-formatter-sarif
43-
--output-file eslint-results.sarif
44-
continue-on-error: true
45-
46-
- name: Upload analysis results to GitHub
47-
uses: github/codeql-action/upload-sarif@v3
48-
with:
49-
sarif_file: eslint-results.sarif
50-
wait-for-processing: true
51-
30+
run: eslint . --ext .js,.jsx,.ts,.tsx

0 commit comments

Comments
 (0)