From 42e090cda8dfc60f8496f34897cde25e5d841b0e Mon Sep 17 00:00:00 2001 From: Armand Grillet <2117580+armandgrillet@users.noreply.github.com> Date: Wed, 30 Mar 2022 13:12:59 +0200 Subject: [PATCH] Do not run CodeQL analysis when some file types are updated (#47051) This follows the recommendation in the GitHub Docs "Configuring code scanning" > "Avoiding unnecessary scans of pull requests". --- .github/workflows/codeql-analysis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 034a18f687c..61f9dc4c477 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -11,6 +11,11 @@ on: pull_request: # The branches below must be a subset of the branches above branches: [main] + paths-ignore: + - '**/*.json' + - '**/*.md' + - '**/*.txt' + - '**/*.yml' schedule: - cron: '0 4 * * 6'