From 783904d6035c8badf6f513a24f531736dbdcd301 Mon Sep 17 00:00:00 2001 From: tamnd <1218621+tamnd@users.noreply.github.com> Date: Tue, 27 Oct 2026 15:53:10 +0700 Subject: [PATCH 1/2] ci: run codeql only when it has something to scan --- .github/workflows/codeql.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 68f79c33ee3..7c892f3bed1 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,10 +1,13 @@ name: codeql +# The scan reads only the Python code and the workflows. The pipeline merges a pull request of data each hour, so a push or a pull request with no change to them does not start the scan. on: push: branches: [main] + paths: ["**/*.py", ".github/**"] pull_request: branches: [main] + paths: ["**/*.py", ".github/**"] merge_group: schedule: - cron: "23 6 * * 1" From 0cdfc7d1c1371d86e9f610f1097855a0b89e28a0 Mon Sep 17 00:00:00 2001 From: tamnd <1218621+tamnd@users.noreply.github.com> Date: Tue, 27 Oct 2026 15:53:12 +0700 Subject: [PATCH 2/2] ci: run scorecard only when it has something to scan --- .github/workflows/scorecard.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 96c3d15fcec..9343e7a9c01 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -1,8 +1,7 @@ name: scorecard +# The scorecard reads the settings and the workflows of the repository. The pipeline pushes data each hour, so the scorecard runs each week and not on each push. on: - push: - branches: [main] schedule: - cron: "47 6 * * 1" workflow_dispatch: