Alexander Kopachov 3 лет назад
Родитель
Сommit
64d33e01f9
2 измененных файлов с 3 добавлено и 2 удалено
  1. 3 1
      .github/workflows/pvsstudio.yml
  2. 0 1
      .github/workflows/sonarcloud.yml

+ 3 - 1
.github/workflows/pvsstudio.yml

@@ -31,10 +31,12 @@ jobs:
           pvs-studio-analyzer trace -- ./pvs-build
       - name: Analyze
         run: |
-          pvs-studio-analyzer analyze @.pvsoptions -j$(grep -c processor /proc/cpuinfo)
+          pvs-studio-analyzer analyze @.pvsoptions -j$(grep -c processor /proc/cpuinfo) -o PVS-Studio.log
       - name: Convert report
         run: |
           plog-converter -t sarif -o pvs-report.sarif PVS-Studio.log
+          sed -i 's/"results": null/"results": []/g' pvs-report.sarif
+          sed -i 's/"rules": null/"rules": []/g' pvs-report.sarif
       - name: Publish report
         uses: github/codeql-action/upload-sarif@v2
         with:

+ 0 - 1
.github/workflows/sonarcloud.yml

@@ -6,7 +6,6 @@ on:
   push:
     branches:
       - master
-      - vnext
 jobs:
   build:
     name: Build and analyze