1
- # For most projects, this workflow file will not need changing; you simply need
2
- # to commit it to your repository.
3
- #
4
- # You may wish to alter this file to override the set of languages analyzed,
5
- # or to provide custom queries or build logic.
6
- #
7
- # ******** NOTE ********
8
- # We have attempted to detect the languages in your repository. Please check
9
- # the `language` matrix defined below to confirm you have the correct set of
10
- # supported CodeQL languages.
11
- #
12
1
name : " CodeQL"
13
2
14
3
on :
15
4
push :
16
- branches :
5
+ branches :
17
6
- master
18
7
- dev
19
8
paths-ignore :
23
12
- ' **/*.yml'
24
13
- ' **/*.txt'
25
14
pull_request :
26
- # The branches below must be a subset of the branches above
27
15
branches :
28
16
- master
29
17
- dev
34
22
- ' **/*.yml'
35
23
- ' **/*.txt'
36
24
schedule :
37
- - cron : ' 33 6 * * 0'
25
+ - cron : ' 30 1 * * 0'
26
+
38
27
39
28
jobs :
40
- analyze :
41
- name : Analyze
29
+ CodeQL-Build :
42
30
runs-on : ubuntu-latest
43
31
permissions :
32
+ security-events : write
44
33
actions : read
45
34
contents : read
46
- security-events : write
47
-
48
- strategy :
49
- fail-fast : false
50
- matrix :
51
- language : [ 'python' ]
52
- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
53
- # Learn more:
54
- # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
55
35
56
36
steps :
57
37
- name : Checkout repository
58
- uses : actions/checkout@v2
38
+ uses : actions/checkout@v3
59
39
60
- # Initializes the CodeQL tools for scanning.
61
40
- name : Initialize CodeQL
62
- uses : github/codeql-action/init@v1
63
- with :
64
- languages : ${{ matrix.language }}
65
- # If you wish to specify custom queries, you can do so here or in a config file.
66
- # By default, queries listed here will override any specified in a config file.
67
- # Prefix the list here with "+" to use these queries and those in the config file.
68
- # queries: ./path/to/local/query, your-org/your-repo/queries@main
41
+ uses : github/codeql-action/init@v2
69
42
70
- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
71
- # If this step fails, then you should remove it and run the build manually (see below)
72
43
- name : Autobuild
73
- uses : github/codeql-action/autobuild@v1
74
-
75
- # ℹ️ Command-line programs to run using the OS shell.
76
- # 📚 https://git.io/JvXDl
77
-
78
- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
79
- # and modify them (or add more) to build your code if your project
80
- # uses a compiled language
81
-
82
- # - run: |
83
- # make bootstrap
84
- # make release
44
+ uses : github/codeql-action/autobuild@v2
85
45
86
46
- name : Perform CodeQL Analysis
87
- uses : github/codeql-action/analyze@v1
47
+ uses : github/codeql-action/analyze@v2
0 commit comments