27
27
# - https://gh.io/supported-runners-and-hardware-resources
28
28
# - https://gh.io/using-larger-runners
29
29
# Consider using larger runners for possible analysis time improvements.
30
- runs-on : ${{ (matrix.language == 'swift' && 'macos-latest') || ' ubuntu-20 .04' }}
31
- timeout-minutes : ${{ (matrix.language == 'swift' && 120) || 360 }}
30
+ runs-on : ' ubuntu-24 .04'
31
+ timeout-minutes : 360
32
32
permissions :
33
33
actions : read
34
34
contents : read
@@ -38,20 +38,16 @@ jobs:
38
38
fail-fast : false
39
39
matrix :
40
40
language : [ 'cpp' ]
41
- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
42
- # Use only 'java' to analyze code written in Java, Kotlin or both
43
- # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
44
- # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
45
41
46
42
steps :
47
43
- name : Checkout repository
48
- uses : actions/checkout@v3
44
+ uses : actions/checkout@v4
49
45
with :
50
46
submodules : recursive
51
47
52
48
# Initializes the CodeQL tools for scanning.
53
49
- name : Initialize CodeQL
54
- uses : github/codeql-action/init@v2
50
+ uses : github/codeql-action/init@v3
55
51
with :
56
52
languages : ${{ matrix.language }}
57
53
# If you wish to specify custom queries, you can do so here or in a config file.
78
74
./.github/workflows/codeql-buildscript.sh
79
75
80
76
- name : Perform CodeQL Analysis
81
- uses : github/codeql-action/analyze@v2
77
+ uses : github/codeql-action/analyze@v3
82
78
with :
83
79
category : " /language:${{matrix.language}}"
84
80
upload : false
@@ -107,14 +103,14 @@ jobs:
107
103
output : ${{ steps.step1.outputs.sarif-output }}/cpp.sarif
108
104
109
105
- name : Upload CodeQL results to code scanning
110
- uses : github/codeql-action/upload-sarif@v2
106
+ uses : github/codeql-action/upload-sarif@v3
111
107
with :
112
108
sarif_file : ${{ steps.step1.outputs.sarif-output }}
113
109
category : " /language:${{matrix.language}}"
114
110
115
111
- name : Upload CodeQL results as an artifact
116
112
if : success() || failure()
117
- uses : actions/upload-artifact@v3
113
+ uses : actions/upload-artifact@v4
118
114
with :
119
115
name : codeql-results
120
116
path : ${{ steps.step1.outputs.sarif-output }}
0 commit comments