From 26ebabf880bf02e994ccd9d50266378718344bc5 Mon Sep 17 00:00:00 2001 From: jvoisin <julien.voisin@dustri.org> Date: Wed, 25 Dec 2024 22:17:19 +0100 Subject: [PATCH] Tighten the CodeQL rules - don't run CodeQL on test files> - don't run CodeQL if no `.go` nor `.js` file have been modified. --- .github/workflows/codeql-analysis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b2eb4d95fa1..e34931e6755 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -5,9 +5,19 @@ permissions: read-all on: push: branches: [ main ] + paths: + - '**.js' + - '**.go' + paths-ignore: + - '**_test.go' pull_request: # The branches below must be a subset of the branches above branches: [ main ] + paths: + - '**.js' + - '**.go' + paths-ignore: + - '**_test.go' schedule: - cron: '45 22 * * 3'