-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (37 loc) · 1006 Bytes
/
Copy pathcodeql.yml
File metadata and controls
45 lines (37 loc) · 1006 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
36
37
38
39
40
41
42
43
44
45
name: CodeQL
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
# Run every Monday at 08:00 UTC to catch newly published CVEs
- cron: "0 8 * * 1"
jobs:
analyze:
name: Analyze (csharp)
runs-on: windows-latest
permissions:
security-events: write
actions: read
contents: read
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: "10.0.x"
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: csharp
- name: Restore tools
run: dotnet tool restore
- name: Restore & Build
run: |
dotnet restore Pointframe/Pointframe.csproj
dotnet build Pointframe/Pointframe.csproj --no-restore --configuration Release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4