-
Notifications
You must be signed in to change notification settings - Fork 5
31 lines (28 loc) · 915 Bytes
/
Copy pathcodeql.yml
File metadata and controls
31 lines (28 loc) · 915 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
name: CodeQL
on:
push:
branches: [main]
pull_request:
schedule:
- cron: '17 3 * * 2'
permissions:
contents: read
security-events: write
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6
env:
DOTNET_INSTALL_DIR: ${{ runner.temp }}/.dotnet
with:
global-json-file: global.json
- uses: github/codeql-action/init@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4.37.8
with:
languages: csharp
build-mode: manual
queries: security-extended
- run: dotnet restore OpenGameAgent.sln --locked-mode
- run: dotnet build OpenGameAgent.sln -c Release --no-restore
- uses: github/codeql-action/analyze@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4.37.8