From 1292d517b5e0159d0a9817d29a51a942efefe8d7 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 8 Sep 2022 14:15:20 +0800 Subject: [PATCH] Revert ":wrench: Chore: use `on.push.paths-ignore` can prevent Code Scanning annotating new alerts in your pull requests" This reverts commit 6c585b34b1f188c99479f040254e512d30983ce8. --- .github/codeql/codeql-config.yml | 5 +++++ .github/workflows/codeql-analysis.yml | 4 +--- 2 files changed, 6 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 93565617..b7b162b8 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -15,9 +15,6 @@ on: push: branches: - master - paths-ignore: - - assets/lib/** - - docs/** pull_request: branches: - master @@ -46,6 +43,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.