-
Notifications
You must be signed in to change notification settings - Fork 173
35 lines (31 loc) · 890 Bytes
/
Code-Analysis.yml
File metadata and controls
35 lines (31 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: .NET Code Analysis
on:
push:
branches: [ 'v[1-9][0-9].0' ]
pull_request:
branches: [ 'v[1-9][0-9].0' ]
jobs:
NET-Code-Analysis:
name: .NET Code Analysis runner
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup .NET environment
uses: ./.github/actions/setup-dotnet
with:
build: 'false'
# Run code analysis for the solution at repo root
- name: Run .NET Code Analysis
uses: dotnet/code-analysis@main
id: code-analysis
with:
build-breaking: false
all-categories: latest
# Upload the analysis results file
- name: Upload analysis results
uses: actions/upload-artifact@v7
with:
name: analysis_results.sarif
path: ${{ steps.code-analysis.outputs.sarifFile }}