Skip to content

Commit 14def81

Browse files
committed
test
1 parent 755b4aa commit 14def81

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/cppcheck-premium.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,21 @@ jobs:
3636
3737
- name: Generate a license file
3838
run: |
39-
echo cppcheck > cppcheck.lic
40-
echo 251231 >> cppcheck.lic
41-
echo 80000 >> cppcheck.lic
42-
echo 4f8dc8e7c8bb288f >> cppcheck.lic
43-
echo path:lib >> cppcheck.lic
39+
mkdir ~/.cppcheckpremium
40+
echo d6dd5 > ~/.cppcheckpremium/cppcheck-premium-git.lic
41+
echo 260426 >> ~/.cppcheckpremium/cppcheck-premium-git.lic
42+
echo abdc6437a51ed209 >> ~/.cppcheckpremium/cppcheck-premium-git.lic
43+
echo 559f05803f67ce4c >> ~/.cppcheckpremium/cppcheck-premium-git.lic
4444
4545
- name: Check
4646
run: |
47-
cppcheckpremium/premiumaddon --check-loc-license cppcheck.lic > cppcheck-premium-loc
4847
cppcheckpremium/cppcheck --premium=safety-off -j$(nproc) -D__GNUC__ -D__CPPCHECK__ --suppressions-list=cppcheckpremium-suppressions --platform=unix64 --enable=style --premium=misra-c++-2023 --premium=cert-c++-2016 --inline-suppr lib --error-exitcode=0 --output-format=sarif 2> results.sarif
4948
5049
- name: Cat results
5150
run: |
5251
cat results.sarif
52+
sed -i 's|"startColumn": 0,|"startColumn": 1,|' results.sarif
53+
sed -i 's|"endColumn": 0,|"endColumn": 1,|' results.sarif
5354
5455
- name: Upload report
5556
uses: github/codeql-action/upload-sarif@v3

0 commit comments

Comments
 (0)