Skip to content

Commit

Permalink
add manual CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender committed Nov 15, 2024
1 parent 6dd0de3 commit 10a2cdf
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/test-codeql.yml
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"

0 comments on commit 10a2cdf

Please sign in to comment.