-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.32 KB
/
codeql.yml
File metadata and controls
55 lines (46 loc) · 1.32 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
name: CodeQL
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 4 * * 1"
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
analyze:
name: Analyze C#
runs-on: windows-2025-vs2026
permissions:
actions: read
contents: read
security-events: write
packages: read
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: csharp
queries: security-extended
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Install Dalamud
shell: pwsh
run: |
$hookDir = "$env:APPDATA\XIVLauncher\addon\Hooks\dev"
New-Item -ItemType Directory -Path $hookDir -Force | Out-Null
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile latest.zip
Expand-Archive -Path latest.zip -DestinationPath $hookDir -Force
- name: Build
env:
GITHUB_PACKAGES_PAT: ${{ secrets.GITHUB_TOKEN }}
run: dotnet build NexusKit.Modules.sln -c Release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: csharp