Skip to content

Commit e2d1bd9

Browse files
committed
upload
Signed-off-by: Anas Nashif <[email protected]>
1 parent e65a546 commit e2d1bd9

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/codechecker.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,21 @@ jobs:
8989
ccache -p
9090
ccache -z -s -vv
9191

92-
- name: Run Tests with Twister
93-
id: twister
94-
run: |
95-
export ZEPHYR_BASE=${PWD}
96-
export ZEPHYR_TOOLCHAIN_VARIANT=llvm
97-
pip install codechecker==v6.25.1
92+
- name: Run Tests with Twister
93+
id: twister
94+
run: |
95+
export ZEPHYR_BASE=${PWD}
96+
export ZEPHYR_TOOLCHAIN_VARIANT=llvm
97+
pip install codechecker==v6.25.1
98+
99+
west build -b native_sim samples/synchronization -- -DZEPHYR_SCA_VARIANT=codechecker -DCODECHECKER_EXPORT=sarif
98100

99-
west build -b native_sim samples/synchronization -- -DZEPHYR_SCA_VARIANT=codechecker -DCODECHECKER_EXPORT=sarif
101+
- name: Upload SARIF file
102+
uses: github/codeql-action/upload-sarif@v3
103+
with:
104+
# Path to SARIF file relative to the root of the repository
105+
sarif_file: build/sca/codechecker/codechecker.sarif
106+
category: codechecker
100107

101108
- name: Print ccache stats
102109
if: always()

0 commit comments

Comments
 (0)