-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (36 loc) · 1.14 KB
/
codeql.yml
File metadata and controls
45 lines (36 loc) · 1.14 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
name: "CodeQL Advanced"
on: [push, pull_request]
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
security-events: write
packages: read
actions: read
contents: read
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup .NET
if: matrix.language == 'csharp'
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-extended,security-and-quality
- name: Build client
run: dotnet build ./src/HtmlPdfPlus.Client/HtmlPdfPlus.Client.csproj -c Release
- name: Build server
run: dotnet build ./src/HtmlPdfPlus.Server/HtmlPdfPlus.Server.csproj -c Release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"