mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
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.
This commit is contained in:
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
@@ -2,7 +2,13 @@ name: "Code scanning - action"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'rc/*'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- 'rc/*'
|
||||
schedule:
|
||||
- cron: '0 9 * * 1'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user