-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.08 KB
/
sast-scan.yml
File metadata and controls
54 lines (44 loc) · 1.08 KB
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
46
47
48
49
50
51
52
53
54
name: SAST Scan
on:
push:
branches:
- master
- develop
- enhancements
pull_request:
branches:
- master
- develop
- enhancements
workflow_dispatch:
permissions:
actions: read
contents: read
security-events: write
concurrency:
group: sast-scan-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
codeql:
name: CodeQL (C#)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: csharp
build-mode: manual
- name: Restore dependencies
run: dotnet restore ApiHealthDashboard.sln
- name: Build solution
run: dotnet build ApiHealthDashboard.sln -c Release --no-restore
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4
with:
category: /language:csharp