File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,14 +23,12 @@ jobs:
2323 steps :
2424 - name : Checkout repository
2525 uses : actions/checkout@v3
26- with :
27- path : vm-manager
2826
2927 - run : |
3028 export CC=/usr/bin/clang
3129 export CXX=/usr/bin/clang++
32- mkdir vm-manager/ build/
33- cd vm-manager/ build/
30+ mkdir build/
31+ cd build/
3432 cmake -DCMAKE_BUILD_TYPE=Release ..
3533 cmake --build . --config Release
3634 cd -
@@ -40,12 +38,36 @@ jobs:
4038 uses : github/codeql-action/init@v2
4139 with :
4240 languages : ${{ matrix.language }}
43- # queries: security-extended,security-and-quality
41+ queries : security-extended,security-and-quality
4442
4543 - run : |
46- cd vm-manager/ build/
44+ cd build/
4745 find src/CMakeFiles/vm-manager.dir/ -iname *.o |xargs rm
4846 cmake --build . --config Release
4947
5048 - name : Perform CodeQL Analysis
5149 uses : github/codeql-action/analyze@v2
50+ with :
51+ upload : False
52+ output : sarif-results
53+
54+ - name : Filter SARIF
55+ uses : advanced-security/filter-sarif@v1
56+ with :
57+ patterns : |
58+ -build/**:**
59+ -src/services/protos/gens/**:**
60+ input : sarif-results/cpp.sarif
61+ output : sarif-results/cpp-filtered.sarif
62+
63+ - name : Upload SARIF
64+ uses : github/codeql-action/upload-sarif@v2
65+ with :
66+ sarif_file : sarif-results/cpp-filtered.sarif
67+
68+ - name : artifacts
69+ uses : actions/upload-artifact@v3
70+ with :
71+ name : sarif-results
72+ path : sarif-results
73+
You can’t perform that action at this time.
0 commit comments