@@ -2,65 +2,39 @@ name: "CodeQL"
2
2
3
3
on :
4
4
push :
5
- branches : [master]
5
+ branches :
6
+ - master
6
7
pull_request :
7
- # The branches below must be a subset of the branches above
8
- branches : [ master]
8
+ branches :
9
+ - master
9
10
schedule :
10
- - cron : ' 0 9 * * 5'
11
+ - cron : ' 0 9 * * 5'
12
+
13
+ permissions : { }
11
14
12
15
jobs :
13
16
analyze :
14
17
name : Analyze
15
18
runs-on : ubuntu-latest
16
-
17
- strategy :
18
- fail-fast : false
19
- matrix :
20
- # Override automatic language detection by changing the below list
21
- # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
22
- language : ['java']
23
- # Learn more...
24
- # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
25
-
19
+ permissions :
20
+ security-events : write
26
21
steps :
27
22
- name : Checkout repository
28
- uses : actions/checkout@v4.1.7
23
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag= v4.1.7
29
24
with :
30
25
# We must fetch at least the immediate parents so that if this is
31
26
# a pull request then we can checkout the head.
32
27
fetch-depth : 2
33
-
34
28
# If this run was triggered by a pull request event, then checkout
35
29
# the head of the pull request instead of the merge commit.
36
30
- run : git checkout HEAD^2
37
31
if : ${{ github.event_name == 'pull_request' }}
38
-
39
32
# Initializes the CodeQL tools for scanning.
40
33
- name : Initialize CodeQL
41
- uses : github/codeql-action/init@v3
34
+ uses : github/codeql-action/init@23acc5c183826b7a8a97bce3cecc52db901f8251 # tag=v3.25.10
42
35
with :
43
- languages : ${{ matrix.language }}
44
- # If you wish to specify custom queries, you can do so here or in a config file.
45
- # By default, queries listed here will override any specified in a config file.
46
- # Prefix the list here with "+" to use these queries and those in the config file.
47
- # queries: ./path/to/local/query, your-org/your-repo/queries@main
48
-
49
- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
50
- # If this step fails, then you should remove it and run the build manually (see below)
36
+ languages : java
51
37
- name : Autobuild
52
- uses : github/codeql-action/autobuild@v3
53
-
54
- # ℹ️ Command-line programs to run using the OS shell.
55
- # 📚 https://git.io/JvXDl
56
-
57
- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
58
- # and modify them (or add more) to build your code if your project
59
- # uses a compiled language
60
-
61
- # - run: |
62
- # make bootstrap
63
- # make release
64
-
38
+ uses : github/codeql-action/autobuild@23acc5c183826b7a8a97bce3cecc52db901f8251 # tag=v3.25.10
65
39
- name : Perform CodeQL Analysis
66
- uses : github/codeql-action/analyze@v3
40
+ uses : github/codeql-action/analyze@23acc5c183826b7a8a97bce3cecc52db901f8251 # tag=v3.25.10
0 commit comments