Skip to content

Commit

Permalink
Update CodeQL scanning
Browse files Browse the repository at this point in the history
- exclude certain Python files
- scan only certain Javascript directories
  • Loading branch information
webbnh committed May 9, 2023
1 parent 54c53f2 commit 918d435
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .github/codeql/javascript-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: "CodeQL config for Javascript"

paths:
- dashboard/src/**
5 changes: 5 additions & 0 deletions .github/codeql/python-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: "CodeQL config for Python"

paths-ignore:
- agent/bench-scripts/test-bin/fio-histo-log-pctiles.py
- web-server/v0.3/demo.py
12 changes: 1 addition & 11 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
Expand Down Expand Up @@ -45,6 +34,7 @@ jobs:
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/${{ matrix.language }}-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.
# Prefix the list here with "+" to use these queries and those in the config file.
Expand Down

0 comments on commit 918d435

Please sign in to comment.