Skip to content

Commit 0d11ef3

Browse files
committed
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@gone.nl>
1 parent 749c62f commit 0d11ef3

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,22 @@
66
name: "CodeQL"
77

88
on:
9-
push:
10-
branches: [master]
11-
pull_request:
12-
# The branches below must be a subset of the branches above
13-
branches: [master]
9+
# push:
10+
# branches: [master]
11+
# pull_request:
12+
# # The branches below must be a subset of the branches above
13+
# branches: [master]
1414
schedule:
15-
- cron: '0 9 * * 5'
15+
# ┌───────────── minute (0 - 59)
16+
# │ ┌───────────── hour (0 - 23)
17+
# │ │ ┌───────────── day of the month (1 - 31)
18+
# │ │ │ ┌───────────── month (1 - 12)
19+
# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
20+
# │ │ │ │ │
21+
# │ │ │ │ │
22+
# │ │ │ │ │
23+
# * * * * *
24+
- cron: '0 9 * * 4'
1625

1726
jobs:
1827
analyze:

0 commit comments

Comments
 (0)