Skip to content

Commit 4fc72fa

Browse files
committed
Run analyzers during CI.
1 parent afbbd03 commit 4fc72fa

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/pull-requests.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
id-token: write
10+
security-events: write
11+
812
jobs:
913
build:
1014

@@ -20,3 +24,14 @@ jobs:
2024
uses: actions/setup-dotnet@v3
2125
- name: Run CI
2226
run: dotnet fsi build.fsx
27+
28+
- name: Analyze Solution
29+
if: matrix.os == 'ubuntu-latest'
30+
run: dotnet msbuild /t:AnalyzeSolution
31+
continue-on-error: true
32+
33+
- name: Upload SARIF file
34+
uses: github/codeql-action/upload-sarif@v2
35+
if: matrix.os == 'ubuntu-latest'
36+
with:
37+
sarif_file: ./reports

0 commit comments

Comments
 (0)