exclude files for Initialize CodeQL
This commit is contained in:
6
.codeql-config.yml
Normal file
6
.codeql-config.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
paths:
|
||||
exclude:
|
||||
- "**/test/**"
|
||||
- "**/__tests__/**"
|
||||
- "**/*.spec.*"
|
||||
- "**/*.test.*"
|
||||
4
.github/workflows/codeql.yml
vendored
4
.github/workflows/codeql.yml
vendored
@@ -66,6 +66,8 @@ jobs:
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
build-mode: ${{ matrix.build-mode }}
|
||||
# Use our custom configuration file to exclude test files.
|
||||
config-file: .codeql-config.yml
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# To add queries to those specified in your config file, prefix the list here with "+"
|
||||
@@ -92,4 +94,4 @@ jobs:
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
with:
|
||||
category: "/language:${{ matrix.language }}"
|
||||
category: "/language:${{ matrix.language }}"
|
||||
Reference in New Issue
Block a user