Skip to content

Commit 2bc0353

Browse files
committed
CI: Microsoft C++ Code Analysis: disable checking CrowCpp code since it has too many warnings
53 unsolved issues are hidden by this commit 74 issued were found initially
1 parent e0d04dd commit 2bc0353

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/msvc.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,27 @@ jobs:
5656
# - name: Build CMake
5757
# run: cmake --build ${{ env.build }}
5858

59-
- name: Initialize MSVC Code Analysis
60-
uses: microsoft/msvc-code-analysis-action@04825f6d9e00f87422d6bf04e1a38b1f3ed60d99
59+
- name: MSVC Code Analysis
60+
uses: microsoft/msvc-code-analysis-action@v0.1.0
6161
# Provide a unique ID to access the sarif output path
6262
id: run-analysis
6363
with:
6464
cmakeBuildDirectory: ${{ env.build }}
65+
buildConfiguration: Debug
6566
# Ruleset file that will determine what checks will be run
6667
ruleset: NativeRecommendedRules.ruleset
68+
# Any includes contained inside these paths will be excluded from analysis
69+
ignoredIncludePaths: ${{ github.workspace }}/dependency
6770

6871
# Upload SARIF file to GitHub Code Scanning Alerts
6972
- name: Upload SARIF to GitHub
7073
uses: github/codeql-action/upload-sarif@v2
7174
with:
7275
sarif_file: ${{ steps.run-analysis.outputs.sarif }}
76+
77+
# Upload SARIF file as an Artifact to download and view
78+
- name: Upload SARIF as an Artifact
79+
uses: actions/upload-artifact@v2
80+
with:
81+
name: sarif-file.json
82+
path: ${{ steps.run-analysis.outputs.sarif }}

0 commit comments

Comments
 (0)