From c590d1ae4433e0952ef350450817cc691c0a5494 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 14 Mar 2023 10:21:45 +0100 Subject: [PATCH] Run codeql only when js or py files are changed --- .github/workflows/codeql-analysis.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml index 08f2f22..f76b06f 100644 --- a/.github/workflows/codeql-analysis.yaml +++ b/.github/workflows/codeql-analysis.yaml @@ -14,9 +14,15 @@ name: "CodeQL" on: push: branches: [ "master" ] + paths: + - "**.py" + - "**.js" pull_request: # The branches below must be a subset of the branches above branches: [ "master" ] + paths: + - "**.py" + - "**.js" schedule: - cron: '35 4 * * 3'