Skip to content

Commit 0e151df

Browse files
committed
jq
Signed-off-by: Anas Nashif <[email protected]>
1 parent db5f1b2 commit 0e151df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/codechecker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,14 @@ jobs:
9494
export CODECHECKER_CLEANUP=y
9595
export CODECHECKER_EXPORT=sarif
9696
pip install codechecker==v6.25.1 cppcheck sarif-tools jq
97+
sudo apt-get update
98+
sudo apt-get install -y jq
9799
export PATH=/usr/lib/llvm-16/bin/:$PATH
98100
99-
./scripts/twister -i --force-color -N -v --build-only --timeout-multiplier 2 -p qemu_x86 -T tests/kernel/threads/
101+
./scripts/twister -i --force-color -N -v --build-only --timeout-multiplier 2 -p qemu_x86 -T samples/hello_world
100102
101103
sarif copy --output results.sarif $(find twister-out -name "codechecker.sarif")
104+
jq -s '{ "$schema": "https://json.schemastore.org/sarif-2.1.0", "version": "2.1.0", "runs": map(.runs) | add }' $(find twister-out -name "codechecker.sarif") > results.sarif
102105
103106
- name: Upload SARIF as artifact
104107
if: always()

0 commit comments

Comments
 (0)