Skip to content

Upgrade dependencies and prepare for build using .NET SDK 9.0 for fut… #691

Upgrade dependencies and prepare for build using .NET SDK 9.0 for fut…

Upgrade dependencies and prepare for build using .NET SDK 9.0 for fut… #691

name: C# CodeQL Analyis
on:
push:
pull_request:
branches: [ develop ]
schedule:
- cron: '0 8 * * 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:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET 8.0.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Cache NuGet Packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Dotnet Build
run: dotnet build -c Release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3