From 448659e1c693cce8ac83a9f3c3eb51880120b854 Mon Sep 17 00:00:00 2001 From: Matthew Donoughe Date: Fri, 27 Oct 2023 22:44:09 -0400 Subject: [PATCH] Ignore static/web for codeql (#3397) * Ignore static/web for codeql * use different config for different languages * put something in go config --- .github/codeql/go.yml | 1 + .github/codeql/javascript.yml | 4 ++++ .github/workflows/codeql-analysis.yml | 1 + 3 files changed, 6 insertions(+) create mode 100644 .github/codeql/go.yml create mode 100644 .github/codeql/javascript.yml diff --git a/.github/codeql/go.yml b/.github/codeql/go.yml new file mode 100644 index 000000000..bcf4cb0d7 --- /dev/null +++ b/.github/codeql/go.yml @@ -0,0 +1 @@ +name: Go config diff --git a/.github/codeql/javascript.yml b/.github/codeql/javascript.yml new file mode 100644 index 000000000..3135ad495 --- /dev/null +++ b/.github/codeql/javascript.yml @@ -0,0 +1,4 @@ +name: Javascript config + +paths-ignore: + - static/web diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e7e9044b9..adbad557a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -44,6 +44,7 @@ jobs: uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} + config-file: ./.github/codeql/${{ matrix.language }}.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.