File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2,31 +2,31 @@ name: "Code scanning - action"
2
2
3
3
on :
4
4
push :
5
+ branches : [main]
5
6
pull_request :
7
+ branches : [main]
6
8
schedule :
7
9
- cron : ' 0 0 * * 0'
8
10
9
11
concurrency :
10
- group : build -${{ github.event.pull_request.number || github.ref }}
12
+ group : codeql -${{ github.event.pull_request.number || github.ref }}
11
13
cancel-in-progress : true
12
14
13
15
jobs :
14
16
CodeQL-Build :
15
17
16
18
runs-on : ubuntu-latest
17
19
20
+ permissions :
21
+ security-events : write
22
+
18
23
steps :
19
24
- name : Checkout repository
20
25
uses : actions/checkout@v2
21
26
with :
22
27
# We must fetch at least the immediate parents so that if this is
23
28
# a pull request then we can checkout the head.
24
29
fetch-depth : 2
25
-
26
- # If this run was triggered by a pull request event, then checkout
27
- # the head of the pull request instead of the merge commit.
28
- - run : git checkout HEAD^2
29
- if : ${{ github.event_name == 'pull_request' }}
30
30
31
31
# Initializes the CodeQL tools for scanning.
32
32
- name : Initialize CodeQL
You can’t perform that action at this time.
0 commit comments