-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6dd0de3
commit 10a2cdf
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "main", "v3" ] | ||
|
||
pull_request: | ||
branches: [ "main", "v3" ] | ||
|
||
schedule: | ||
- cron: '37 14 * * 3' | ||
|
||
jobs: | ||
|
||
analyze: | ||
name: analyze | ||
runs-on: 'ubuntu-latest' | ||
|
||
permissions: | ||
security-events: write | ||
packages: read | ||
actions: read | ||
contents: read | ||
|
||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: csharp | ||
build-mode: manual | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 9.x | ||
dotnet-quality: "ga" | ||
|
||
- name: Build library | ||
run: > | ||
dotnet build | ||
--configuration Release | ||
--property:ContinuousIntegrationBuild=true | ||
-warnAsError | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:csharp" |