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" 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: