-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (41 loc) · 1.46 KB
/
Codeql.yml
File metadata and controls
47 lines (41 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
name: "CodeQL Analysis"
on:
push:
branches: [dev]
pull_request:
branches: [dev]
schedule:
- cron: "0 2 * * *"
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["csharp"]
steps:
- name: Checkout repository
uses: actions/checkout@v6
# Initializes the CodeQL tools and creates a CodeQL database
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
build-mode: none
languages: ${{ matrix.language }}
# If you have custom queries, you can add them here using a queries property
# Autobuild attempts to build the C# project automatically.
# For complex C# projects, you may need to replace this with custom build commands (e.g., using `dotnet build`)
- name: Autobuild
uses: github/codeql-action/autobuild@v4
with:
working-directory: ./Sources
# Performs the CodeQL analysis and uploads the results to GitHub
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"