-
-
Notifications
You must be signed in to change notification settings - Fork 662
42 lines (35 loc) · 1.06 KB
/
Copy pathcodeql.yml
File metadata and controls
42 lines (35 loc) · 1.06 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
name: CodeQL
# Default advanced CodeQL already analyzes PRs. This workflow is a weekly/manual
# csharp scan with an explicit Restore+Build so release.yml can keep deleting the
# hosted CodeQL cache for disk without losing a scheduled security signal.
on:
schedule:
- cron: '17 7 * * 1'
workflow_dispatch:
permissions:
contents: read
security-events: write
jobs:
analyze:
name: Analyze (csharp)
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: csharp
build-mode: manual
- uses: actions/setup-dotnet@v6
with:
dotnet-version: |
10.0.x
- name: Build for CodeQL
run: |
dotnet restore src/Titanium.Web.Proxy.sln
dotnet build src/Titanium.Web.Proxy.sln -c Release --no-restore
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:csharp/manual-build"