Repository navigation
64 lines (54 loc) · 1.46 KB
/
Copy pathcodeql.yml
File metadata and controls
64 lines (54 loc) · 1.46 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
57
58
59
60
61
62
63
name: CodeQL
# Public repository: code scanning is free. Analyze the managed shell on every
# push/PR and run a weekly deep scan. The C core is covered by the native core
# build, not by CodeQL's C/C++ autobuild.
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
# Weekly deep scan (Mondays, 04:42 UTC) alongside the nightly CI matrix.
- cron: "42 4 * * 1"
workflow_dispatch:
permissions:
actions: read
contents: read
packages: read
security-events: write
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: false
env:
DOTNET_CLI_TELEMETRY_OPTOUT: "1"
DOTNET_NOLOGO: "1"
CI: "true"
jobs:
analyze:
name: Analyze C#
runs-on: [self-hosted, Linux, X64, repofleet-ci]
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
language: [csharp]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-dotnet@v6
with:
dotnet-version: "11.0.x"
cache: true
cache-dependency-path: |
Directory.Packages.props
**/*.csproj
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: security-extended
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Analyze
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"