-
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.37 KB
/
Copy pathcodeql.yml
File metadata and controls
56 lines (46 loc) · 1.37 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
55
56
name: CodeQL
# Statyczna analiza bezpieczeństwa kodu C# — wyniki w zakładce Security → Code scanning.
# Uwaga: wymaga repo publicznego albo GitHub Advanced Security (repo prywatne).
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: "27 3 * * 1" # w tle co poniedziałek 03:27 UTC
# Nowszy push anuluje trwającą analizę na tej samej gałęzi.
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
security-events: write
jobs:
analyze:
name: Analyze (C#)
# WPF + interop RDP (ActiveX) wymagają Windows.
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup .NET 8
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
- name: Cache NuGet
uses: actions/cache@v6
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: csharp
- name: Build
run: dotnet build RdpManager.sln -c Release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:csharp"