Skip to content

Commit b0d8014

Browse files
authored
chores: Don't run CodeQL on every commit
1 parent cdd101d commit b0d8014

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/codeql.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
name: "CodeQL"
1+
name: "CodeQL"
22

33
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
4+
schedule:
5+
# ┌───────────── minute (0 - 59)
6+
# │ ┌───────────── hour (0 - 23)
7+
# │ │ ┌───────────── day of the month (1 - 31)
8+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
9+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
10+
# │ │ │ │ │
11+
# │ │ │ │ │
12+
# │ │ │ │ │
13+
# * * * * *
14+
- cron: '30 1 * * 0'
815

916
jobs:
1017
CodeQL-Build:
@@ -29,4 +36,4 @@ jobs:
2936
uses: github/codeql-action/autobuild@v1
3037

3138
- name: Perform CodeQL Analysis
32-
uses: github/codeql-action/analyze@v1
39+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)