Skip to content

Commit d4722ff

Browse files
committed
bump up,, update codeql
1 parent b5b1ffa commit d4722ff

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env bash
22

3-
sudo apt-get -y install gcc-arm-none-eabi
4-
53
cd ports/stm32f4
64
make BOARD=feather_stm32f405_express get-deps
75
make BOARD=feather_stm32f405_express all

.github/workflows/codeql.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
# - https://gh.io/supported-runners-and-hardware-resources
2828
# - https://gh.io/using-larger-runners
2929
# 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
3232
permissions:
3333
actions: read
3434
contents: read
@@ -37,7 +37,7 @@ jobs:
3737
strategy:
3838
fail-fast: false
3939
matrix:
40-
language: [ 'cpp' ]
40+
language: [ 'c-cpp' ]
4141
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
4242
# Use only 'java' to analyze code written in Java, Kotlin or both
4343
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
@@ -49,9 +49,14 @@ jobs:
4949
with:
5050
submodules: recursive
5151

52+
- name: Setup Toolchain
53+
uses: ./.github/actions/setup_toolchain
54+
with:
55+
toolchain: 'arm-gcc'
56+
5257
# Initializes the CodeQL tools for scanning.
5358
- name: Initialize CodeQL
54-
uses: github/codeql-action/init@v2
59+
uses: github/codeql-action/init@v3
5560
with:
5661
languages: ${{ matrix.language }}
5762
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -78,7 +83,7 @@ jobs:
7883
./.github/workflows/codeql-buildscript.sh
7984
8085
- name: Perform CodeQL Analysis
81-
uses: github/codeql-action/analyze@v2
86+
uses: github/codeql-action/analyze@v3
8287
with:
8388
category: "/language:${{matrix.language}}"
8489
upload: false
@@ -107,20 +112,18 @@ jobs:
107112
output: ${{ steps.step1.outputs.sarif-output }}/cpp.sarif
108113

109114
- name: Upload CodeQL results to code scanning
110-
uses: github/codeql-action/upload-sarif@v2
115+
uses: github/codeql-action/upload-sarif@v3
111116
with:
112117
sarif_file: ${{ steps.step1.outputs.sarif-output }}
113118
category: "/language:${{matrix.language}}"
114119

115120
- name: Upload CodeQL results as an artifact
116-
if: success() || failure()
117121
uses: actions/upload-artifact@v4
118122
with:
119123
name: codeql-results
120124
path: ${{ steps.step1.outputs.sarif-output }}
121125
retention-days: 5
122126

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

Comments
 (0)