@@ -7,10 +7,12 @@ name: "CodeQL"
77
88on :
99 push :
10- branches : [master]
10+ branches :
11+ - master
1112 pull_request :
1213 # The branches below must be a subset of the branches above
13- branches : [master]
14+ branches :
15+ - master
1416 schedule :
1517 - cron : ' 0 15 * * 3'
1618
@@ -24,26 +26,23 @@ jobs:
2426 matrix :
2527 # Override automatic language detection by changing the below list
2628 # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
27- language : ['javascript', 'python']
29+ language :
30+ - ' javascript'
31+ - ' python'
2832 # Learn more...
2933 # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
3034
3135 steps :
3236 - name : Checkout repository
33- uses : actions/checkout@v3
37+ uses : actions/checkout@v6.0.2
3438 with :
3539 # We must fetch at least the immediate parents so that if this is
3640 # a pull request then we can checkout the head.
3741 fetch-depth : 2
3842
39- # If this run was triggered by a pull request event, then checkout
40- # the head of the pull request instead of the merge commit.
41- - run : git checkout HEAD^2
42- if : ${{ github.event_name == 'pull_request' }}
43-
4443 # Initializes the CodeQL tools for scanning.
4544 - name : Initialize CodeQL
46- uses : github/codeql-action/init@v2
45+ uses : github/codeql-action/init@v4.33.0
4746 with :
4847 languages : ${{ matrix.language }}
4948 # If you wish to specify custom queries, you can do so here or in a config file.
5453 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5554 # If this step fails, then you should remove it and run the build manually (see below)
5655 - name : Autobuild
57- uses : github/codeql-action/autobuild@v2
56+ uses : github/codeql-action/autobuild@v4.33.0
5857
5958 # ℹ️ Command-line programs to run using the OS shell.
6059 # 📚 https://git.io/JvXDl
6867 # make release
6968
7069 - name : Perform CodeQL Analysis
71- uses : github/codeql-action/analyze@v2
70+ uses : github/codeql-action/analyze@v4.33.0
0 commit comments