From 0d11ef3056428287b5efd15ac382a20464f6fc92 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 1 Oct 2020 15:29:05 +0200 Subject: [PATCH] GH Actions: run CodeQL only on cron-job, not on pull requests Analysis takes more than 10 minutes, which is quite long to run, so change it to only run on a cron job. Also changing the cron to run on Thursdays instead of Fridays; no need to worry about security issues during the Weekend. Signed-off-by: Sebastiaan van Stijn --- .github/workflows/codeql-analysis.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index daffcf3d07..c85a52fd30 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -6,13 +6,22 @@ name: "CodeQL" on: - push: - branches: [master] - pull_request: - # The branches below must be a subset of the branches above - branches: [master] +# push: +# branches: [master] +# pull_request: +# # The branches below must be a subset of the branches above +# branches: [master] schedule: - - cron: '0 9 * * 5' + # ┌───────────── minute (0 - 59) + # │ ┌───────────── hour (0 - 23) + # │ │ ┌───────────── day of the month (1 - 31) + # │ │ │ ┌───────────── month (1 - 12) + # │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday) + # │ │ │ │ │ + # │ │ │ │ │ + # │ │ │ │ │ + # * * * * * + - cron: '0 9 * * 4' jobs: analyze: