diff --git a/.github/codeql/code-ql.config.yml b/.github/codeql/code-ql.config.yml new file mode 100644 index 0000000..5dff368 --- /dev/null +++ b/.github/codeql/code-ql.config.yml @@ -0,0 +1,7 @@ +name: "My CodeQL config" + +paths: + - lib +paths-ignore: + - node_modules + - '**/*.test.js' diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f08e335..ba6f253 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,12 +11,6 @@ # name: "CodeQL" -paths: - - lib -paths-ignore: - - node_modules - - test - on: push: branches: [ "master" ] @@ -51,6 +45,7 @@ jobs: uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} + config-file: ./.github/codeql/codeql-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.