Skip to content

Commit

Permalink
Try different static analysis workflow tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Zang3th committed Sep 24, 2023
1 parent ed8c8b3 commit 3ab0950
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,31 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Run static analysis
uses: JacobDomagala/StaticAnalysis@master
- name: Install tools
run: |
wget -q -O - https://files.pvs-studio.com/etc/pubkey.txt \
| sudo apt-key add -
sudo wget -O /etc/apt/sources.list.d/viva64.list \
https://files.pvs-studio.com/etc/viva64.list
sudo apt update
sudo apt install pvs-studio
pvs-studio-analyzer credentials ${{ secrets.PVS_STUDIO_CREDENTIALS }}
- name: Build
run: |
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=On -B build .
cmake --build build -j
- name: Analyze
run: |
pvs-studio-analyzer analyze -f build/compile_commands.json -j
- name: Convert report
run: |
plog-converter -t sarif -o pvs-report.sarif PVS-Studio.log
- name: Publish report
uses: github/codeql-action/upload-sarif@v1
with:
exclude_dir: Vendor
use_cmake: true
apt_pckgs: software-properties-common libglu1-mesa-dev mesa-common-dev
clang_tidy_args: -checks='*,google-*
cppcheck_args: --enable=all --suppress=missingInclude --suppress=cstyleCast --suppress=unusedFunction --suppress=unknownMacro
sarif_file: pvs-report.sarif
category: PVS-Studio

0 comments on commit 3ab0950

Please sign in to comment.