Skip to content

Commit 918d435

Browse files
committed
Update CodeQL scanning
- exclude certain Python files - scan only certain Javascript directories
1 parent 54c53f2 commit 918d435

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: "CodeQL config for Javascript"
2+
3+
paths:
4+
- dashboard/src/**

.github/codeql/python-config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: "CodeQL config for Python"
2+
3+
paths-ignore:
4+
- agent/bench-scripts/test-bin/fio-histo-log-pctiles.py
5+
- web-server/v0.3/demo.py

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL"
132

143
on:
@@ -45,6 +34,7 @@ jobs:
4534
uses: github/codeql-action/init@v2
4635
with:
4736
languages: ${{ matrix.language }}
37+
config-file: ./.github/codeql/${{ matrix.language }}-config.yml
4838
# If you wish to specify custom queries, you can do so here or in a config file.
4939
# By default, queries listed here will override any specified in a config file.
5040
# Prefix the list here with "+" to use these queries and those in the config file.

0 commit comments

Comments
 (0)