File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,13 @@ name: "Code scanning - action"
22
33on :
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
1420 steps :
1521 - name : Checkout repository
1622 uses : actions/checkout@v2
17- with :
18- # We must fetch at least the immediate parents so that if this is
19- # a pull request then we can checkout the head.
20- fetch-depth : 2
21-
22- # If this run was triggered by a pull request event, then checkout
23- # the head of the pull request instead of the merge commit.
24- - run : git checkout HEAD^2
25- if : ${{ github.event_name == 'pull_request' }}
26-
23+
2724 # Initializes the CodeQL tools for scanning.
2825 - name : Initialize CodeQL
2926 uses : github/codeql-action/init@v1
You can’t perform that action at this time.
0 commit comments