Skip to content

Commit ae75d3c

Browse files
committed
Fixed cppcheck workflow
1 parent bc9ef05 commit ae75d3c

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/cppcheck.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,22 @@ jobs:
1818
lfs: true
1919

2020
- name: Install cppcheck
21-
run: sudo apt-get update && sudo apt-get install -y cppcheck
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y cppcheck
2224
23-
- name: Run cppcheck (SARIF output)
25+
- name: Run cppcheck
2426
run: |
25-
mkdir -p cppcheck-output
27+
mkdir -p cppcheck-report
2628
cppcheck --enable=all --inconclusive --quiet \
27-
--output-file=cppcheck-output/cppcheck.sarif \
28-
--output-format=sarif \
29-
$GITHUB_WORKSPACE/framework/src/
30-
-I $GITHUB_WORKSPACE/include/
29+
--output-file=cppcheck-report/cppcheck.txt \
30+
$GITHUB_WORKSPACE/framework/src/ \
31+
-I $GITHUB_WORKSPACE/include/ \
3132
-I $GITHUB_WORKSPACE/framework/include/
33+
cat cppcheck-report/cppcheck.txt
3234
33-
- name: Upload SARIF to GitHub
34-
uses: github/codeql-action/upload-sarif@v3
35+
- name: Upload cppcheck report artifact
36+
uses: actions/upload-artifact@v4
3537
with:
36-
sarif_file: cppcheck-output/cppcheck.sarif
38+
name: cppcheck-report
39+
path: cppcheck-report/cppcheck.txt

0 commit comments

Comments
 (0)