From c4ef9e008f7afdd5c0d33f3c7d8811edd2da44c0 Mon Sep 17 00:00:00 2001 From: isaak654 Date: Tue, 4 Jul 2023 00:32:32 +0200 Subject: [PATCH] Use `paths` filter This is needed to avoid unnecessary CodeQL scans. --- .github/workflows/codeql.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index c79944f8..7832e28b 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -3,9 +3,17 @@ name: "CodeQL" on: push: branches: [ 'master' ] + paths: + - '**.c' + - '**.cpp' + - '**.h' pull_request: # The branches below must be a subset of the branches above. branches: [ 'master' ] + paths: + - '**.c' + - '**.cpp' + - '**.h' schedule: - cron: '33 7 * * 6'