Skip to content

Commit

Permalink
Exclude tests from code scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Dec 28, 2022
1 parent 756942d commit 4abc9c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/codeql-config.yml
@@ -0,0 +1,2 @@
paths-ignore:
- '**/tests/*.js'
5 changes: 3 additions & 2 deletions .github/workflows/codeql.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ javascript, python ]
language: [ javascript ]

steps:
- name: Checkout
Expand All @@ -29,12 +29,13 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
config-file: ./.github/codeql-config.yml
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
if: ${{ matrix.language == 'javascript' || matrix.language == 'python' }}
if: ${{ matrix.language == 'javascript' }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Expand Down

0 comments on commit 4abc9c4

Please sign in to comment.