Skip to content

Commit da7b0fe

Browse files
committed
github upload
1 parent 9f9d485 commit da7b0fe

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/CI-unixish.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,11 @@ jobs:
549549
if [ $ec -eq 1 ]; then
550550
exit $ec
551551
fi
552-
552+
553+
# test sarif output
554+
./cppcheck --enable=style --error-exitcode=0 --platform=unix64 --inconclusive samples/unreadVariable --output-file=samples.sarif --output-format=sarif
555+
cat samples.sarif
556+
553557
# self check simplecpp
554558
./cppcheck $selfcheck_options externals/simplecpp || ec=1
555559
# self check lib/cli
@@ -564,3 +568,12 @@ jobs:
564568
# triage
565569
./cppcheck $selfcheck_options $cppcheck_options -DQ_MOC_OUTPUT_REVISION=68 -DQT_CHARTS_LIB --library=qt -Icmake.output/tools/triage -Igui tools/triage/*.cpp cmake.output/tools/triage || ec=1
566570
exit $ec
571+
572+
- name: Upload SARIF file
573+
uses: github/codeql-action/upload-sarif@v3
574+
with:
575+
# Path to SARIF file relative to the root of the repository
576+
sarif_file: samples.sarif
577+
# Optional category for the results
578+
# Used to differentiate multiple results for one commit
579+
category: samples

0 commit comments

Comments
 (0)