From a22f812d397e860dbc595181c80674714721097a Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Thu, 26 Oct 2023 11:34:10 +0200 Subject: [PATCH] Avoid unnecessary scans for codeql on non code Add some ignore paths to codeql to not do analysis on md, yaml and txt files. Which mean if the pr/push contains only those files it will not be run. cf: https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#avoiding-unnecessary-scans-of-pull-requests Signed-off-by: Chmouel Boudjnah --- .github/workflows/codeql-analysis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b55e4a71677..5c358b84554 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,9 +14,17 @@ name: "CodeQL" on: push: branches: [ main ] + paths-ignore: + - '**/*.md' + - '**/*.txt' + - '**/*.yaml' pull_request: # The branches below must be a subset of the branches above branches: [ main ] + paths-ignore: + - '**/*.md' + - '**/*.txt' + - '**/*.yaml' schedule: - cron: '30 20 * * 2'