-
Notifications
You must be signed in to change notification settings - Fork 82
45 lines (36 loc) · 1016 Bytes
/
infersharp-analysis.yml
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
36
37
38
39
40
41
42
43
44
45
name: InferSharp
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
analyze:
strategy:
fail-fast: false
matrix:
language: [ csharp ]
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Cache NuGet Packages
uses: actions/cache@v4
with:
key: nuget-${{ hashFiles('Directory.Packages.props') }}
path: ~/.nuget/packages
- name: Setup dotnet
uses: actions/[email protected]
with:
dotnet-version: '8.x'
- name: Build with dotnet
run: dotnet build WebApiBoilerplate.sln --no-incremental
- name: Run Infer#
uses: microsoft/[email protected]
id: runinfersharp
with:
binary-path: 'src'
- name: Upload SARIF output to GitHub Security Center
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: infer-out/report.sarif