Skip to content

Commit a666a69

Browse files
authored
Merge pull request #5086 from github/update-codeql-workflow
Update CodeQL workflow
2 parents 634041d + 121ffbb commit a666a69

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 7 additions & 10 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

@@ -14,16 +20,7 @@ jobs:
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

0 commit comments

Comments
 (0)