|
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-24.04' }} |
31 | | - timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} |
| 30 | + runs-on: ubuntu-latest |
| 31 | + timeout-minutes: 360 |
32 | 32 | permissions: |
33 | 33 | actions: read |
34 | 34 | contents: read |
|
37 | 37 | strategy: |
38 | 38 | fail-fast: false |
39 | 39 | matrix: |
40 | | - language: [ 'cpp' ] |
| 40 | + language: [ 'c-cpp' ] |
41 | 41 | # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ] |
42 | 42 | # Use only 'java' to analyze code written in Java, Kotlin or both |
43 | 43 | # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both |
|
49 | 49 | with: |
50 | 50 | submodules: recursive |
51 | 51 |
|
| 52 | + - name: Setup Toolchain |
| 53 | + uses: ./.github/actions/setup_toolchain |
| 54 | + with: |
| 55 | + toolchain: 'arm-gcc' |
| 56 | + |
52 | 57 | # Initializes the CodeQL tools for scanning. |
53 | 58 | - name: Initialize CodeQL |
54 | | - uses: github/codeql-action/init@v2 |
| 59 | + uses: github/codeql-action/init@v3 |
55 | 60 | with: |
56 | 61 | languages: ${{ matrix.language }} |
57 | 62 | # If you wish to specify custom queries, you can do so here or in a config file. |
|
78 | 83 | ./.github/workflows/codeql-buildscript.sh |
79 | 84 |
|
80 | 85 | - name: Perform CodeQL Analysis |
81 | | - uses: github/codeql-action/analyze@v2 |
| 86 | + uses: github/codeql-action/analyze@v3 |
82 | 87 | with: |
83 | 88 | category: "/language:${{matrix.language}}" |
84 | 89 | upload: false |
@@ -107,20 +112,18 @@ jobs: |
107 | 112 | output: ${{ steps.step1.outputs.sarif-output }}/cpp.sarif |
108 | 113 |
|
109 | 114 | - name: Upload CodeQL results to code scanning |
110 | | - uses: github/codeql-action/upload-sarif@v2 |
| 115 | + uses: github/codeql-action/upload-sarif@v3 |
111 | 116 | with: |
112 | 117 | sarif_file: ${{ steps.step1.outputs.sarif-output }} |
113 | 118 | category: "/language:${{matrix.language}}" |
114 | 119 |
|
115 | 120 | - name: Upload CodeQL results as an artifact |
116 | | - if: success() || failure() |
117 | 121 | uses: actions/upload-artifact@v4 |
118 | 122 | with: |
119 | 123 | name: codeql-results |
120 | 124 | path: ${{ steps.step1.outputs.sarif-output }} |
121 | 125 | retention-days: 5 |
122 | 126 |
|
123 | | - - name: Fail if an error is found |
124 | | - run: | |
125 | | - ./.github/workflows/fail_on_error.py \ |
126 | | - ${{ steps.step1.outputs.sarif-output }}/cpp.sarif |
| 127 | +# - name: Fail if an error is found |
| 128 | +# run: | |
| 129 | +# ./.github/workflows/fail_on_error.py ${{ steps.step1.outputs.sarif-output }}/cpp.sarif |
0 commit comments