Skip to content

Commit

Permalink
Update eslint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Marioneq4958 authored Mar 29, 2024
1 parent fd25f06 commit bb3f46f
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,13 @@ jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- uses: pnpm/action-setup@v3
- name: Checkout code
- name: Checkout
uses: actions/checkout@v3

- name: Install ESLint
run: |
pnpm install [email protected]
pnpm install @microsoft/[email protected]
- uses: pnpm/action-setup@v2
- name: Install dependencies
run: pnpm install

- name: Run ESLint
- name: Run eslint
run: pnpm lint
--config .eslintrc.js
--ext .js,.jsx,.ts,.tsx
--format @microsoft/eslint-formatter-sarif
--output-file eslint-results.sarif
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: eslint-results.sarif
wait-for-processing: true

0 comments on commit bb3f46f

Please sign in to comment.