Skip to content

Commit

Permalink
[GitHub Actions] CodeQL: Separate configs for C++ and JS
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Feb 7, 2023
1 parent 77aac9e commit 929f585
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
13 changes: 13 additions & 0 deletions .github/codeql/codeql-config-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "WZ CodeQL C++ config"

queries:
- uses: security-extended
- uses: security-and-quality

query-filters:
- include:
precision:
- high
- very-high
tags contain: security
security-severity: /([5-9]|10)\.(\d)+/
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "WZ CodeQL config"
name: "WZ CodeQL JS config"

# Interpreted languages scanning configuration (ex. JavaScript/TypeScript)
paths:
Expand All @@ -13,10 +13,3 @@ queries:
- uses: security-extended
- uses: security-and-quality

query-filters:
- include:
precision:
- high
- very-high
tags contain: security
security-severity: /([7-9]|10)\.(\d)+/
3 changes: 1 addition & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ jobs:
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
queries: +security-extended,security-and-quality
config-file: ./.github/codeql/codeql-config-${{ matrix.language }}.yml
# Override language selection by uncommenting this and choosing your languages
# languages: go, javascript, csharp, python, cpp, java

Expand Down

0 comments on commit 929f585

Please sign in to comment.