File tree 1 file changed +58
-0
lines changed
1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) Microsoft Corporation.
2
+ # Licensed under the MIT License.
3
+ #
4
+ # http://go.microsoft.com/fwlink/?LinkId=248926
5
+
6
+ name : Microsoft C++ Code Analysis
7
+
8
+ on :
9
+ push :
10
+ branches : [ "main" ]
11
+ pull_request :
12
+ branches : [ "main" ]
13
+ paths-ignore :
14
+ - ' *.md'
15
+ - LICENSE
16
+ - ' .nuget/*'
17
+ - build/*.cmd
18
+ - build/*.json
19
+ - build/*.props
20
+ - build/*.ps1
21
+ - build/*.targets
22
+ - build/*.yml
23
+ schedule :
24
+ - cron : ' 41 16 * * 1'
25
+
26
+ permissions :
27
+ contents : read
28
+
29
+ jobs :
30
+ analyze :
31
+ permissions :
32
+ contents : read
33
+ security-events : write
34
+ actions : read
35
+ name : Analyze
36
+ runs-on : windows-latest
37
+
38
+ steps :
39
+ - name : Checkout repository
40
+ uses : actions/checkout@v4
41
+
42
+ - name : Configure CMake
43
+ working-directory : ${{env.GITHUB_WORKSPACE}}
44
+ run : cmake -B out -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON
45
+
46
+ - name : Initialize MSVC Code Analysis
47
+
48
+ id : run-analysis
49
+ with :
50
+ cmakeBuildDirectory : ./out
51
+ buildConfiguration : Debug
52
+ ruleset : NativeRecommendedRules.ruleset
53
+
54
+ # Upload SARIF file to GitHub Code Scanning Alerts
55
+ - name : Upload SARIF to GitHub
56
+ uses : github/codeql-action/upload-sarif@v3
57
+ with :
58
+ sarif_file : ${{ steps.run-analysis.outputs.sarif }}
You can’t perform that action at this time.
0 commit comments