Skip to content

Commit 121ffbb

Browse files
committed
Restrict triggers for CodeQL workflow
Analysing all branches on both 'push' and 'pull request' events causes duplicate analysis. It is only necessary to analyse the _target_ branches of pull requests on push.
1 parent ecfad6b commit 121ffbb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ name: "Code scanning - action"
22

33
on:
44
push:
5+
branches:
6+
- main
7+
- 'rc/*'
58
pull_request:
9+
branches:
10+
- main
11+
- 'rc/*'
612
schedule:
713
- cron: '0 9 * * 1'
814

0 commit comments

Comments
 (0)