ci: configure codeql to ignore tests

This commit is contained in:
Daniel Roe 2024-09-11 11:09:52 +01:00
parent 1b53df5bfb
commit d5f98a7578
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B
2 changed files with 20 additions and 0 deletions

10
.github/codeql/codeql-config.yml vendored Normal file
View File

@ -0,0 +1,10 @@
paths:
- 'packages/*/dist/**'
- 'packages/nuxt/bin/**'
- 'packages/schema/schema/**'
paths-ignore:
- 'test/**'
- '**/*.test.js'
- '**/*.test.ts'
- '**/*.test.tsx'
- '**/__tests__/**'

View File

@ -87,6 +87,16 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
with:
config: |
paths:
- 'packages/*/dist/**'
- 'packages/nuxt/bin/**'
- 'packages/schema/schema/**'
paths-ignore:
- 'test/**'
- '**/*.spec.ts'
- '**/*.test.ts'
- '**/__snapshots__/**'
languages: javascript
queries: +security-and-quality