Skip to content

refactor: codeql, unit test GHAs & upgrade sln to net8 #1

refactor: codeql, unit test GHAs & upgrade sln to net8

refactor: codeql, unit test GHAs & upgrade sln to net8 #1

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [3.0.0]
pull_request:
branches: [3.0.0]
schedule:
- cron: "0 0 * * 1"
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["csharp"]
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# Autobuild doesnt support .net 6
# - name: Autobuild
# uses: github/codeql-action/autobuild@v1
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
cache: true
- run: dotnet restore --locked-mode
- run: |
dotnet build /p:UseSharedCompilation=false
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"