From a4556a728e20af78402bd8da27e8b0a0da65ba8e Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 8 Sep 2022 13:54:11 +0800 Subject: [PATCH] :wrench: Chore: add CodeQL config --- .github/codeql/codeql-config.yml | 5 +++++ .github/workflows/codeql-analysis.yml | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .github/codeql/codeql-config.yml diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml new file mode 100644 index 00000000..cd53f354 --- /dev/null +++ b/.github/codeql/codeql-config.yml @@ -0,0 +1,5 @@ +name: "CodeQL config" + +paths-ignore: + - assets/lib/** + - docs/** \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 3f7b7d18..57ebcef7 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -19,7 +19,10 @@ on: branches: - master schedule: - - cron: '45 0 * * 1' + - cron: '30 18 * * 5' + paths-ignore: + - assets/lib/** + - docs/** jobs: analyze: @@ -43,8 +46,7 @@ jobs: uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} - paths-ignore: - - assets/lib + 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.