Skip to content

Commit bafff48

Browse files
setup codeql to ignore test files/folders
1 parent ce13cd5 commit bafff48

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/codeql/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
paths-ignore:
2+
- 'tests/**'
3+
- '**/*.test.ts'
4+
- '**/*.spec.ts'
5+
- '**/*.spec.tsx'
6+
- '**/__mocks__/**'

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
uses: github/codeql-action/init@v1
4646
with:
4747
languages: ${{ matrix.language }}
48+
config-file: ./.github/codeql/config.yml
4849
# If you wish to specify custom queries, you can do so here or in a config file.
4950
# By default, queries listed here will override any specified in a config file.
5051
# Prefix the list here with "+" to use these queries and those in the config file.

0 commit comments

Comments
 (0)