From 3ac52fca8a5adc86c303a56bf11fb46812fd60be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= Date: Fri, 10 Nov 2023 13:48:50 -0600 Subject: [PATCH] Only run CodeQL when Python files change --- .github/workflows/codeql-analysis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 83b013d09..5b3bc04f5 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -9,7 +9,13 @@ name: "CodeQL" on: push: branches: [ "main" ] - pull_request: {} + paths: + - .github/workflows/codeql-analysis.yml + - '**.py' # Any Python file + pull_request: + paths: + - .github/workflows/codeql-analysis.yml + - '**.py' # Any Python file schedule: - cron: '37 10 * * 5'