Skip to content

Commit

Permalink
exclude files for Initialize CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
rubentalstra committed Feb 8, 2025
1 parent 1688310 commit dc6e5c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
paths:
exclude:
- "**/test/**"
- "**/__tests__/**"
- "**/*.spec.*"
- "**/*.test.*"
4 changes: 3 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "+"
Expand All @@ -92,4 +94,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
category: "/language:${{ matrix.language }}"

0 comments on commit dc6e5c1

Please sign in to comment.